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

已提问 8 个月前299 查看次数
1 回答
0
已接受的回答

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
已回答 8 个月前
  • Thank you @Taylor-AWS

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则