Process files containing Cypher queries describing complicated models.
Project description
A tool to support the description and development of state-and-transition models using the Cypher graph query language.
Purpose
State-and-transition models (STMs) are valuable tools for capturing and communicating qualitative ecological and geomorphic knowledge. However, they can become unwieldy when the richness of the available qualitative knowledge renders them difficult to represent in their entirety on a 2-dimensional surface.
Cymod aims to simplify the development and use of detailed STMs by allowing modellers to specify components of their models piecemeal in individual Cypher files. Cymod can then to do the work of wiring these components together into a complete model, stored in a Neo4j graph database.
Example usage
Having prepared a set of Cypher files specifying an STM in the ./cypher-files directory, a modeller can load those files into the graph database with the following Python commands:
from cymod import ServerGraphLoader
# Initialise a ServerGraphLoader object using your Neo4j credentials
gl = ServerGraphLoader(user="username", password="password")
# Read cypher queries from files in cypher-files directory
gl.load_cypher("cypher-files")
# Run these queries against the graph specified in the neo4j
# configuration file
gl.commit()
Supported Python versions
Tested against Python 2.7, 3.5, 3.6, and 3.7.
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
Built Distribution
File details
Details for the file cymod-0.0.5.tar.gz
.
File metadata
- Download URL: cymod-0.0.5.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f972e6c93c3c85a55d7fd1da17abbac095dd6a94f2012ad8b3321f9595b504f |
|
MD5 | eb6f5740cb41a6ed7e7a3c6cfc63614c |
|
BLAKE2b-256 | 4efd9fa9673d38625d84457e986d5568c6731e7110b6d2e7f059dae1fd443792 |
File details
Details for the file cymod-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: cymod-0.0.5-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8887a90ef1949581abefa6d873225dd2dc947ca02307655742750b44acd264af |
|
MD5 | c5b247bd363cafd88f89498067278b6f |
|
BLAKE2b-256 | 638d89e955ab43fde5fbdd4d7962b928a91b9d9024e041e9fe8d440f2ad66ff3 |