Skip to content

add Neo4j graph storage adapter#76

Open
YuliaVyaznikova wants to merge 2 commits into
RaguTeam:devfrom
YuliaVyaznikova:neo4j
Open

add Neo4j graph storage adapter#76
YuliaVyaznikova wants to merge 2 commits into
RaguTeam:devfrom
YuliaVyaznikova:neo4j

Conversation

@YuliaVyaznikova

Copy link
Copy Markdown

No description provided.

@AsphodelRem

Copy link
Copy Markdown
Collaborator
  1. Insertion into the database currently fails when nodes contain cluster information. Neo4j reports an error because only primitive property types are supported.

  2. Could we use a field from the entity class as a Neo4j label? It would be useful to filter entities by their type. One possible approach is to add a get_label() method to the base Node class that returns the field to be used as the Neo4j label.

@YuliaVyaznikova

Copy link
Copy Markdown
Author

Now clusters are serialized to JSON for Neo4j compatibility, and get_label() on Entity returns self.entity_type as a Neo4j label (e.g. :PERSON).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants