[英]How to get a list of predicates in Cayley graph
我一直在研究開源知識圖實現的功能-Cayley https://github.com/cayleygraph/cayley/blob/master/docs/Quickstart-As-Application.md
有趣的是,查詢是自然形成的,例如
// Let's get the list of actors in the film gV().Has("<name>","Casablanca") .Out("</film/film/starring>").Out("</film/performance/actor>") .Out("<name>").All()
我想了解如何獲取對節點有效的所有“謂詞”列表? 我可以考慮的一種方法是手動進行數據轉儲(三胞胎)。 有什么編程方式嗎? 或任何可用的模式查詢工具?
我發現答案很簡單,但是在Gremlin API文檔的文檔中卻有很深的聯系。
Gremlin API提供了path.OutPredicates()path.InPredicates()
https://github.com/cayleygraph/cayley/blob/master/docs/GremlinAPI.md#pathoutpredicates
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.