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()

preguntada hace 8 meses301 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
respondido hace 8 meses
  • Thank you @Taylor-AWS

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas