简体   繁体   English

图表在语义网中遍历算法

[英]Graph Traversing algorithms in Semantic web

I am asking about Algorithms that would be useful in Querying the Semantic web DB to get all the related RDFs to an original Object. 我问的是在查询语义Web数据库以获取所有相关RDF到原始对象时有用的算法。

ie If the original Object is the movie "inception" , I want an algorithm to build queries to get the RDFs of the cast of the movie, the studio, the country ....etc so that I can build a relationship graph. 即如果原始的对象是电影"inception" ,我想要一个算法来构建查询以获得电影,工作室,国家等的演员的RDF,以便我可以建立关系图。

The most close example is the answer to this question , Especially this class , I wan similar algorithms or maybe titles to search in order to produce such an algorithm, I am thinking maybe some modifications on graph traversing algorithms can work, but I'm not sure. 最接近的例子是这个问题的答案,特别是这个类 ,我想类似的算法或可能要搜索的标题,以便产生这样的算法,我想也许对图遍历算法的一些修改可以工作,但我不是当然。

NOTE: My project is in ASP.NET. 注意:我的项目是在ASP.NET中。 So, it would help to use Exisiting .NET libraries. 因此,使用Exisiting .NET库会有所帮助。

You should be able to do a simple breadth-first-search to get all the objects that are a certain distance away from a given node. 您应该能够进行简单的广度优先搜索,以获取距离给定节点一定距离的所有对象。

You'll need to know something about the schema because some neighboring nodes are more meaningful than others. 您需要了解有关模式的信息,因为某些相邻节点比其他节点更有意义。 For example, in Freebase, we have intermediate nodes that link a film to an actor and a role . 例如,在Freebase中,我们有中间节点 将电影链接到演员和角色 You need to know to go 2-ply deep to get at the actor and the role because just saying that the film is related to the intermediate nodes is not very interesting. 你需要知道要深入了解演员和角色,因为只是说电影与中间节点有关并不是很有趣。

Did you take a look at " property paths "? 你看过“ 物业路径 ”了吗?

Property Paths give a more succinct way to write parts of basic graph patterns and also extend matching of triple pattern to arbitrary length paths. 属性路径提供了一种更简洁的方式来编写基本图形模式的部分,并且还将三重模式的匹配扩展到任意长度路径。 Property paths do not invalidate or change any existing SPARQL query. 属性路径不会使任何现有SPARQL查询无效或更改。

Triple stores and SPARQL engines such as OWLIM and AllegroGraph support them. 三重存储和SPARQL引擎(如OWLIMAllegroGraph)支持它们。

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

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