Skip to main content

TRAPI → Cypher transpiler

Test status via GitHub Actions Code coverage on Codecov

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

Metadata

Release files for reasoner-transpiler 2.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reasoner-transpiler 2.4.2
File Size Uploaded Provenance
reasoner_transpiler-2.4.2.tar.gz 29.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for reasoner-transpiler 2.4.2
File Interpreter ABI Platform
reasoner_transpiler-2.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 50.2 kB

Release files / reasoner_transpiler-2.4.2.tar.gz

Download URL reasoner_transpiler-2.4.2.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f4ea382545c6ebec5ead353d2b413183156edcf15e624635c37b8b4593e94457
BLAKE2b-256 checksum
How to use checksums
ceac24358bb89cf253e33ffcc01deaab871f0d9261f9a616a403809a1bafea10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / reasoner_transpiler-2.4.2-py3-none-any.whl

Download URL reasoner_transpiler-2.4.2-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0d7776404768e8d682f4c720124fd68289675ba3862e43e4968e4ba334a1028
BLAKE2b-256 checksum
How to use checksums
3bfe9da69d7a137b093f5c98dd39bfae90fb12f34d630311b27006687cdf3e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for reasoner-transpiler 2.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.4.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page