Skip to main content

agrag.graphdb.serialize.parse_entity_node

parse_entity_node(node:object) -> Entity | None

Parse one stored entity's property dict into an Entity.

Neo4j rows carry no labels, so the label is the prefix of the node's merge_key.

Parameters:

  • node (object) – The node's properties, as a RETURN n row holds them.

Returns:

  • Entity | None – The entity, or None when node is not a property dict or has no
  • Entity | None – usable id or merge_key.