TRAPI → Cypher transpiler
Project description
TRAPI → Cypher transpiler
Installation
pip install reasoner-transpiler
Usage
from reasoner_transpiler.cypher import get_query
qgraph = {
"nodes": {
"diabetes": {
"ids": ["MONDO:0005148"],
},
"phenotype": {
"categories": ["biolink:PhenotypicFeature"],
},
},
"edges": {
"has phenotype": {
"subject": "diabetes",
"predicates": ["biolink:has_phenotype"],
"object": "phenotype",
},
},
}
cypher = get_query(qgraph)
Biolink Model
This package uses the Biolink Model Toolkit to access the Biolink Model. Optionally, choose a specific version of the Biolink Model with the environment variable BL_VERSION. Otherwise, the latest version used by the Biolink Model Toolkit will be used.
export BL_VERSION=4.1.6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reasoner_transpiler-2.3.0.tar.gz
(26.7 kB
view details)
Built Distribution
File details
Details for the file reasoner_transpiler-2.3.0.tar.gz
.
File metadata
- Download URL: reasoner_transpiler-2.3.0.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42393e0880b89f32f8b57ea3ac4ac2e18622c12cd5e0a1790421e5ffe71d5dd2 |
|
MD5 | 20b34ab39f7eb2a2070719b0c0709c79 |
|
BLAKE2b-256 | 61b2f494fb9cb1ca0cc821f5b3df12e8627ba2a7a4f5ea67ce667a9451f73a6a |
File details
Details for the file reasoner_transpiler-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: reasoner_transpiler-2.3.0-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb17361a9176b9ec7fad79ce9186d55de0e692d9f5ce4c8dd109621a7f6567fd |
|
MD5 | db5be5167d928857b7e7163cffa28cd7 |
|
BLAKE2b-256 | 3e4b2dec71b6057429d3baaa1e40c5dc2ef5bcde91a214c1a10e04e1c165ccd2 |