Parameters
query – cypher query
detect_relation_types(str_relation: str) → Tuple[str, List[str]][source]¶
Parameters
str_relation – relation in string format
extract_node_variable(part: str) → Optional[str][source]¶
Parameters
part – node in string format
extract_paths(query: str) → List[str][source]¶
Parameters
query – cypher query
judge_direction(relation: str) → str[source]¶
Parameters
relation – relation in string format
verify_schema(from_node_labels: List[str], relation_types: List[str], to_node_labels: List[str]) → bool[source]¶
Parameters
from_node_labels – labels of the from node
relation_type – type of the relation
to_node_labels – labels of the to node