Neo4jTranslator#
- class langchain_community.query_constructors.neo4j.Neo4jTranslator(*args: Any, **kwargs: Any)[source]#
Deprecated since version 0.3.8: Use
:class:`~langchain_neo4j.query_constructors.neo4j.Neo4jTranslator`
instead.Translate Neo4j internal query language elements to valid filters.
Attributes
allowed_comparators
Allowed comparators for the visitor.
allowed_operators
Subset of allowed logical operators.
Methods
__init__
(*args, **kwargs)visit_comparison
(comparison)Translate a Comparison.
visit_operation
(operation)Translate an Operation.
visit_structured_query
(structured_query)Translate a StructuredQuery.
- __init__(*args: Any, **kwargs: Any) Any #
- Parameters:
self (Any)
args (Any)
kwargs (Any)
- Return type:
Any
- visit_comparison(comparison: Comparison) Dict [source]#
Translate a Comparison.
- Parameters:
comparison (Comparison) – Comparison to translate.
- Return type:
Dict
- visit_operation(operation: Operation) Dict [source]#
Translate an Operation.
- Parameters:
operation (Operation) – Operation to translate.
- Return type:
Dict
- visit_structured_query(structured_query: StructuredQuery) Tuple[str, dict] [source]#
Translate a StructuredQuery.
- Parameters:
structured_query (StructuredQuery) – StructuredQuery to translate.
- Return type:
Tuple[str, dict]