Constraints in AWS Neptune

0

I have exported data from neo4j then converted that exported csv into nodes.csv and edges.csv using neo4j-neptune.jar file to load data in Neptune .In neo4j I have created constraints so will that exported csv have constraints also or do we need to define again in Neptune .If we need to define it again then how we can do that .I am using SageMaker notebook for querying data. I am trying below query for creating constraints but getting token recognition error %%gremlin graph.schema().propertyKey('id').Text().create() graph.schema().index().forNodes('Person').withName('uniqueIdConstraint').by('id').unique().add()

gefragt vor 8 Monaten300 Aufrufe
1 Antwort
0
Akzeptierte Antwort

Neptune has two built-in constraints:

  • Each node and edge ID must be unique (so it is highly advised that if you want to maintain uniqueness via a certain value, then use that value in the built-in ~id for a node or edge).
  • Each edge must have a node at either end of the edge (no dangling edges).

Beyond that, Neptune is schema-on-read. https://docs.aws.amazon.com/neptune/latest/userguide/migration-compatibility.html

profile pictureAWS
beantwortet vor 8 Monaten
  • Thank you @Taylor-AWS

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen