gpt4 book ai didi

neo4j - 符合 neo4j 中的模式

转载 作者:行者123 更新时间:2023-12-01 12:24:32 28 4
gpt4 key购买 nike

我正在考虑使用图形数据库来存储 IFC数据。理想情况下,数据库应该提供一种方法来定义 IFC 架构中定义的所有规则类型。但是,我不认为有任何这样的数据库,因为 IFC 中的某些规则类型非常复杂并且需要查询数据库。其他的很简单,例如 GUID 的唯一性、强制属性的存在或 data validation . Neo4j 似乎有一些强制执行约束的方法:

Neo4j helps enforce data integrity with the use of constraints. Constraints can be applied to either nodes or relationships. Unique node property constraints can be created, as well as node and relationship property existence constraints.

是否有其他方法可以确保输入的数据符合预定义的架构?

或者还有其他更适合这个工作的图数据库吗?

最佳答案

您几乎可以通过创建事务事件处理程序来实现您想要的一切。

http://neo4j.com/docs/java-reference/current/javadocs/org/neo4j/graphdb/event/TransactionEventHandler.html

您还可以查看 GraphAware Framework和所有 its submodules用于用例以及创建和部署 neo4j 扩展的便利性。

关于neo4j - 符合 neo4j 中的模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41412091/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com