def token_prefix(value): """ Search any instance of a certain token prefix withing the text property targeted. :param value: the value to look for. """ return P('tokenPrefix', value)
def token_regex(value): """ Search any instance of the provided regular expression for the targeted property. :param value: the value to look for. """ return P('tokenRegex', value)
def token(value): """ Search any instance of a certain token within the text property targeted. :param value: the value to look for. """ return P('token', value)
def prefix(value): """ Search for a specific prefix at the beginning of the text property targeted. :param value: the value to look for. """ return P('prefix', value)
def regex(value): """ Search for this regular expression inside the text property targeted. :param value: the value to look for. """ return P('regex', value)
def textPrefix(value): """ Implements JanusGraph's textPrefix functionality. Returns true if the string value starts with the given query string Args: value (str): Returns: bool: Returns true iff the string value starts with the given query string. """ return P("textPrefix", value)
def textContainsPrefix(value): """ Implements JanusGraph's textContainsFuzzy functionality. Returns true if (at least) one word inside the text string begins with the query string Args: value (str): Returns: bool: Returns true iff one word (at least) inside the text string begins with the query string. """ return P("textContainsPrefix", value)
def textPrefix(value): """ Implements JanusGraph's textPrefix functionality. Args: value (str): Returns: P """ predicate = P("textPrefix", value) return predicate
def textContains(value): """ Implements JanusGraph's textContains functionality Args: value (str): Returns: P """ predicate = P("textContains", value) return predicate
def textFuzzy(value): """ Implements JanusGraph's textFuzzy functionality. Returns if the string value is similar to the given query string (based on Levenshtein edit distance) Args: value (str): Returns: bool: Returns true iff the string value is similar to the given query string. """ return P("textFuzzy", value)
def textRegex(value): """ Implements JanusGraph's textRegex functionality. Returns if the string value matches the given regular expression in its entirety Args: value (str): Returns: bool: Returns true iff the string value matches the given regular expression in its entirety. """ return P("textRegex", value)
def textContainsRegex(value): """ Implements JanusGraph's textContainsPrefix functionality. Returns true if (at least) one word inside the text string matches the given regular expression Args: value (str): Returns: bool: Returns true iff one word (at least) inside the text string matches the given regular expression. """ return P("textContainsRegex", value)
def textContains(value): """ Implements JanusGraph's textContains functionality. Returns true if (at least) one word inside the text string matches the query string Args: value (str): Returns: bool: Returns true iff one word (at least) inside the text string matches the query string. """ return P("textContains", value)
def geoWithin(self, value): """ Calls the Gremlin Python's P serializer to query based on geoWithin predicate. Args: value (GeoShape): Returns: P """ withinP = P(self.toString(), value) return withinP
def geoContains(value): """ The method is used for JanusGraph geoContains predicate. GeoContains predicate holds true when one object is contained by another. The query returns the GeoShapes which contains the GeoShape being passed/queried. Args: value (GeoShape): The GeoShape to query for and return all results which are present inside this GeoShape Returns: bool: Returns true iff the GeoShape contains the value being queried """ return P("geoContains", value)
def geoContains(self, value): """ Calls the Gremlin Python's P serializer to query based on geoContains predicate. Args: value (GeoShape): Returns: P """ continsP = P(self.toString(), value) return continsP
def geoWithin(value): """ The method is used for JanusGraph geoWithin predicate. GeoWithin predicate holds true when one object is within another. The query returns the GeoShapes which are present inside/within the GeoShape being passed/queried. Args: value (GeoShape): The GeoShape to query for and return all results within this this GeoShape if present. Returns: bool: Returns true iff the GeoShape is within the value being queried """ return P("geoWithin", value)
def textContainsFuzzy(value): """ Implements JanusGraph's textContainsFuzzy functionality. Returns true if (at least) one word inside the text string is similar to the query String (based on Levenshtein edit distance) Args: value (str): Returns: bool: Returns true iff one word inside the text string is similar to the query String. """ return P("textContainsFuzzy", value)
def contains(value): """ Search for a value inside a cql list/set column. :param value: the value to look for. """ return P('contains', value)
def contains_value(value): """ Search for a map value. :param value: the value to look for. """ return P('containsValue', value)
def contains_key(value): """ Search for a map key. :param value: the value to look for. """ return P('containsKey', value)
def entry_eq(value): """ Search for a map entry. :param value: the value to look for. """ return P('entryEq', value)