简体   繁体   English

GraphDB 无向图路径搜索

[英]GraphDB undirected graph path search

GraphDB 9.9 introduced the powerful feature for retrieving paths (shortests paths, cycles etc.) GraphDB 9.9 引入了用于检索路径(最短路径、循环等)的强大功能

However, from the documentation it is not clear whether this can also be used for nondirected graphs - ie ignoring the edge directions given by triples.然而,从文档中不清楚这是否也可以用于无向图 - 即忽略三元组给出的边缘方向。

Is it possible to apply the path search functions without considering edge direction (eg in social networks where most relationships are mutual).是否可以在不考虑边缘方向的情况下应用路径搜索功能(例如,在大多数关系是相互的社交网络中)。 Of course duplicating each edge with its inverse version can be a solution but far from elegant.当然,用它的逆版本复制每条边可能是一个解决方案,但远非优雅。

It seems that the problem was partly solved in GraphDB 9.10 which now provides the path:bidirectional setting to enable a nondirected path search.似乎这个问题在 GraphDB 9.10 中得到了部分解决,它现在提供了 path:bidirectional 设置以启用非定向路径搜索。

However the returned arcs do not reflect their natural (stored) direction - ie some arcs will be returned reverted, depending on how the path serch algorithm navigated them (something that limits the value of the results, since the query client will not be able to guess how to use the path in further SPARQL queries).然而,返回的弧并不反映它们的自然(存储)方向——即一些弧将被还原,这取决于路径搜索算法如何导航它们(限制结果值的东西,因为查询客户端将无法猜测如何在进一步的 SPARQL 查询中使用路径)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM