我一直在研究开源知识图实现的功能-- Cayley https://github.com/cayleygraph/cayley/blob/master/docs/Quickstart-As-Application.md
知道查询是自然形成的是很有趣的,比如
// Let's get the list of actors in the film
g.V().Has("<name>","Casablanca")
.Out("</film/film/starring>").Out("</film/performance/actor>")
.Out("<name>").All()
我想知道如何才能获得对某个节点有效的所有“谓词”列表?我可以考虑的一种方法是手动遍历数据转储(三元组)。有没有什么程序化的方法?或者任何可用的模式查询工具?
发布于 2017-03-12 15:33:48
我发现答案是直截了当的,但在Gremlin API文档中有很深的联系。
Gremlin API提供path.OutPredicates() path.InPredicates()
https://github.com/cayleygraph/cayley/blob/master/docs/GremlinAPI.md#pathoutpredicates
https://stackoverflow.com/questions/42744839
复制相似问题