momapy_kb
A library to integrate SBGN and CellDesigner maps into graph databases and logic programs.
This library relies on momapy for handling maps.
Features
- Multiple Labelled Property Graph backends: save maps in a Neo4j, FalkorDB or FalkorDBLite (embedded) database
- A Clingo/ASP backend: convert maps to logic programming facts
- Collection management: organize maps into named collections
- Layout element queries: query model elements and retrieve corresponding layout elements for rendering
Installation
pip install momapy-kb[neo4j] # Neo4j support
pip install momapy-kb[falkordb] # FalkorDB support
pip install momapy-kb[falkordblite] # FalkorDBLite (embedded) support
pip install momapy-kb[clingo] # Clingo/ASP support
pip install momapy-kb[all] # Everything
Quick example
import momapy_kb.lpg.session
import momapy_kb.lpg.backends.neo4j
backend = momapy_kb.lpg.backends.neo4j.Neo4jBackend(
hostname="localhost",
username="neo4j",
password="password",
)
with momapy_kb.lpg.session.Session(backend) as session:
# save a CellDesigner map to the Neo4j database
session.save_from_file("model.xml", integration_mode="hash")
# query model elements, return them as momapy objects
results = session.execute_query_as_objects(
"MATCH (n:Protein) RETURN n"
)
# query model elements, return corresponding layout elements
layout_results = session.execute_query_as_layout_elements(
"MATCH (n:Reaction) RETURN n"
)
Documentation
Full documentation is available at https://adrienrougny.github.io/momapy_kb/.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file momapy_kb-0.4.1.tar.gz.
File metadata
- Download URL: momapy_kb-0.4.1.tar.gz
- Upload date:
- Size: 283.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e5a8c2568c05f98a38774837729387807de737efc071e370972877885291a1
|
|
| MD5 |
a65ebf26da896b1eb05b91686eeec73b
|
|
| BLAKE2b-256 |
53ea9414f3a69b3c9af276d7fba3e63622c33ee9c79e998400a8eea2a968816a
|
Provenance
The following attestation bundles were made for momapy_kb-0.4.1.tar.gz:
Publisher:
release.yml on adrienrougny/momapy_kb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
momapy_kb-0.4.1.tar.gz -
Subject digest:
e6e5a8c2568c05f98a38774837729387807de737efc071e370972877885291a1 - Sigstore transparency entry: 2366489616
- Sigstore integration time:
-
Permalink:
adrienrougny/momapy_kb@8b9788d8826c8d896548fa38d620e73e53c6e4a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/adrienrougny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8b9788d8826c8d896548fa38d620e73e53c6e4a2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file momapy_kb-0.4.1-py3-none-any.whl.
File metadata
- Download URL: momapy_kb-0.4.1-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93ee3ba9ae8f5b568dae0277eb24c601f16d1be97aa5ddf666de420887b500fb
|
|
| MD5 |
e6b56578bcecb0451477277f27b2d92d
|
|
| BLAKE2b-256 |
49a52c0565e664dbdac833f6cc89b06766d2a9c66384b2c31537946793a64712
|
Provenance
The following attestation bundles were made for momapy_kb-0.4.1-py3-none-any.whl:
Publisher:
release.yml on adrienrougny/momapy_kb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
momapy_kb-0.4.1-py3-none-any.whl -
Subject digest:
93ee3ba9ae8f5b568dae0277eb24c601f16d1be97aa5ddf666de420887b500fb - Sigstore transparency entry: 2366490564
- Sigstore integration time:
-
Permalink:
adrienrougny/momapy_kb@8b9788d8826c8d896548fa38d620e73e53c6e4a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/adrienrougny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8b9788d8826c8d896548fa38d620e73e53c6e4a2 -
Trigger Event:
workflow_dispatch
-
Statement type: