noctis.repository.neo4j.neo4j_queries.GetRoutes

pydantic model noctis.repository.neo4j.neo4j_queries.GetRoutes[source]

Query to retrieve the list of routes for a given Molecule root

Show JSON schema
{
   "title": "GetRoutes",
   "description": "Query to retrieve the list of routes for a given Molecule root",
   "type": "object",
   "properties": {
      "query": {
         "default": null,
         "title": "Query",
         "type": "string"
      },
      "graph_schema": {
         "anyOf": [
            {
               "$ref": "#/$defs/GraphSchema"
            },
            {
               "type": "null"
            }
         ],
         "default": {
            "base_nodes": {
               "chemical_equation": "ChemicalEquation",
               "molecule": "Molecule"
            },
            "base_relationships": {
               "product": {
                  "end_node": "molecule",
                  "start_node": "chemical_equation",
                  "type": "PRODUCT"
               },
               "reactant": {
                  "end_node": "chemical_equation",
                  "start_node": "molecule",
                  "type": "REACTANT"
               }
            },
            "extra_nodes": {},
            "extra_relationships": {}
         }
      },
      "root_match_value": {
         "default": null,
         "title": "Root Match Value",
         "type": "string"
      },
      "max_number_reactions": {
         "default": null,
         "title": "Max Number Reactions",
         "type": "integer"
      },
      "node_stop_property": {
         "default": null,
         "title": "Node Stop Property",
         "type": "string"
      },
      "match_property": {
         "default": "uid",
         "title": "Match Property",
         "type": "string"
      }
   },
   "$defs": {
      "GraphSchema": {
         "additionalProperties": false,
         "description": "Base model representing the schema of a NOCtis graph",
         "properties": {
            "base_nodes": {
               "additionalProperties": {
                  "type": "string"
               },
               "default": {
                  "chemical_equation": "ChemicalEquation",
                  "molecule": "Molecule"
               },
               "minProperties": 2,
               "title": "Base Nodes",
               "type": "object"
            },
            "base_relationships": {
               "additionalProperties": {
                  "additionalProperties": {
                     "type": "string"
                  },
                  "type": "object"
               },
               "default": {
                  "product": {
                     "end_node": "molecule",
                     "start_node": "chemical_equation",
                     "type": "PRODUCT"
                  },
                  "reactant": {
                     "end_node": "chemical_equation",
                     "start_node": "molecule",
                     "type": "REACTANT"
                  }
               },
               "minProperties": 2,
               "title": "Base Relationships",
               "type": "object"
            },
            "extra_nodes": {
               "additionalProperties": {
                  "type": "string"
               },
               "title": "Extra Nodes",
               "type": "object"
            },
            "extra_relationships": {
               "additionalProperties": {
                  "additionalProperties": {
                     "type": "string"
                  },
                  "type": "object"
               },
               "title": "Extra Relationships",
               "type": "object"
            }
         },
         "title": "GraphSchema",
         "type": "object"
      }
   }
}

Config:
  • arbitrary_types_allowed: bool = True

Fields:
Validators:

field match_property: str = 'uid'
Validated by:
field max_number_reactions: int = None
Validated by:
field node_stop_property: str = None
Validated by:
field query: str = None
Validated by:
field root_match_value: str = None
Validated by:
get_query() list[str][source]
parameters_embedded: ClassVar[bool] = True
query_args_optional: ClassVar[list[str]] = ['max_number_reactions', 'node_stop_property', 'match_property']
query_args_required: ClassVar[list[str]] = ['root_match_value']
query_name: ClassVar[str] = 'get_routes'
query_type: ClassVar[str] = 'retrieve_graph'