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.2.tar.gz
(26.7 kB
view details)
Built Distribution
File details
Details for the file reasoner_transpiler-2.3.2.tar.gz
.
File metadata
- Download URL: reasoner_transpiler-2.3.2.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 | 1be9d4bd5ab7f13889438a58141bfb7c0165b643f1e4b85c9e4aabe65aaa582b |
|
MD5 | df94b017c0f2a8a92d8e1b752af84219 |
|
BLAKE2b-256 | 2963c9d1e00a31a8e53c96872df9f53d24e207713384943d9a718b0eaa999981 |
File details
Details for the file reasoner_transpiler-2.3.2-py3-none-any.whl
.
File metadata
- Download URL: reasoner_transpiler-2.3.2-py3-none-any.whl
- Upload date:
- Size: 19.8 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 | d904ebb5ddfb87014023778d402f359682be38f7ec4613561b77a4364c72889e |
|
MD5 | 6fdcb43e77c6b19c0b85609db7c86d94 |
|
BLAKE2b-256 | b6957dc716f61d9446ccf1a9b2481acf3fa4a3a7cc08e87e11ed70f446888834 |