noctis.repository.neo4j.neo4j_queries.GetGDBSchema¶
- pydantic model noctis.repository.neo4j.neo4j_queries.GetGDBSchema[source]¶
Query to delete ChemicalEquation nodes based on the number of a particular relationship type
Show JSON schema
{ "title": "GetGDBSchema", "description": "Query to delete ChemicalEquation nodes based on the number of a particular relationship type", "type": "object", "properties": { "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": {} } } }, "$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:
- parameters_embedded: ClassVar[bool] = False¶
- query: ClassVar[str] = 'call db.labels() yield label with collect(label) as nodes call db.relationshipTypes() yield relationshipType return nodes, collect(relationshipType) as relationships'¶
- query_args_optional: ClassVar[list[str]] = []¶
- query_args_required: ClassVar[list[str]] = []¶
- query_name: ClassVar[str] = 'get_gdb_schema'¶
- query_type: ClassVar[str] = 'retrieve_stats'¶