Repository Module¶
The Repository Module is a crucial component of the Noctis project, primarily focused on interactions with Neo4j databases. This module provides a comprehensive set of tools and functionalities for managing, querying, and manipulating graph data within a Neo4j environment.
Neo4j Queries¶
Abstract Classes¶
Abstract class representing a query |
|
A registry for managing and accessing Neo4j query classes. |
Constraints¶
Query to constraint uniqueness of Molecule and ChemicalEquation nodes |
|
Query to remove the uniqueness constraint for Molecule and ChemicalEquation nodes |
|
Query to show the uniqueness constraints |
Retrieve Graph Queries¶
Query to retrieve a node based on its uid or other properties |
|
Query to retrieve a tree for the given Molecule root |
|
Query to retrieve the list of routes for a given Molecule root |
|
Query to get paths which start with start node and go through provided intermediate nodes |
Modify Graph Queries¶
Query to add nodes and relationships from a python object. |
|
Query to load nodes from a csv file. |
|
Query to load relationships from CSV file |
|
Query to import nodes and relationships from CSV files |
|
Query to delete ChemicalEquation nodes based on the number of a particular relationship type |
Retrieve Stats Query¶
Query to delete ChemicalEquation nodes based on the number of a particular relationship type |
Custom Query¶
Custom query class for executing queries from YAML files |
Neo4j Repository¶
|
Repository class for interacting with a Neo4j database using defined query strategies. |
Neo4j Functions¶
|
To convert a DataContainer into a query string |
|
To convert a GraphRecord into a query string |
|
To create node queries |
|
To create relationship query |
|
To generate properties assignment |
|
|
|
Combines the directory and file name into an absolute file path and converts it into a file URI suitable for use in a Cypher LOAD CSV command. |
|
Generates a string of file descriptors for nodes or relationships. |
|
Generates a string of file descriptors for nodes. |
Generates a string of file descriptors for relationships. |