NodeAttribute¶
-
class
polyglotdb.query.annotations.attributes.base.
NodeAttribute
(node, label)[source]¶ Methods
__init__
(node, label)Initialize self. aliased_for_cypher
()creates cypher string to use in db aliased_for_output
()creates cypher string for output coerce_value
(value)column_name
(label)sets a column name to label for_column
()for_cypher
()for_filter
()for_json
()for_return
()in_
(other)Checks if the parameter other has a ‘cypher’ element executes the query if it does and appends the relevant results or appends parameter other not_in_
(other)Checks if the parameter other has a ‘cypher’ element executes the query if it does and appends the relevant results or appends parameter other regex
(pattern)Returns a clause for filtering based on regular expressions. value_type
()-
alias
¶ Removes ‘`’ from annotation, concatenates annotation alias and label
-
cache_alias
¶ Removes ‘`’ from annotation, concatenates annotation alias and label
-
in_
(other)[source]¶ Checks if the parameter other has a ‘cypher’ element executes the query if it does and appends the relevant results or appends parameter other
Parameters: - other : list
attribute will be checked against elements in this list
- Returns
- ——-
- string
clause for asserting membership in a filter
-
not_in_
(other)[source]¶ Checks if the parameter other has a ‘cypher’ element executes the query if it does and appends the relevant results or appends parameter other
Parameters: - other : list
attribute will be checked against elements in this list
- Returns
- ——-
- string
clause for asserting non-membership in a filter
-
output_alias
¶ returns output_label if there is one return alias otherwise
-
output_alias_for_cypher
¶ returns output_label if there is one return alias otherwise
-
with_alias
¶ returns type_alias if there is one alias otherwise
-