0

我一直在玩开源知识图实现的功能 - 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()

我想了解如何获取对节点有效的所有“谓词”列表?我能想到的一种方法是手动完成数据转储(三元组)。有什么程序化的方式吗?或任何可用的模式查询工具?

4

1 回答 1

1

我发现答案是直截了当的,但在 Gremlin API 文档的文档中链接得很深。

Gremlin API 提供 path.OutPredicates() path.InPredicates()

https://github.com/cayleygraph/cayley/blob/master/docs/GremlinAPI.md#pathoutpredicates

于 2017-03-12T07:33:47.867 回答