测量RDF / OWL图中类之间的距离 [英] Measuring distances among classes in RDF/OWL graphs

查看:112
本文介绍了测量RDF / OWL图中类之间的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许有人可以给我一个提示。是否有可能测量属于​​同一本体的两个概念/类之间的距离?例如,假设我有一个本体论和
天文学班级和望远镜班。两者之间有联系,但不是直接联系。天文学有一个称为科学的父类,而望远镜有一个称为光学仪器的父类,它属于它的父母,称为仪器仪表,它与一个名为经验科学的类最终属于一个名为科学的类。

因此,望远镜和天文学之间有一个间接的联系,我想知道从另一个课程开始到达一个课程所需的步骤数。

是否有解决该问题的简单SPARQL查询?或者有更好的方法来完成这项工作吗?或者不可能使用语义Web范式来发现它?



任何提示都将非常感谢。

解决方案

在我的理解中,SPARQL不包含任何递归结构以便能够测量任意长度的间接链接。你可以做的最好的事情是准备一系列查询 distance_1(a,b) distance_2(a,b) ...检查两个概念之间的具体距离。另一种方法是使用非SPARQL技术发现此信息,例如使用RDFlib在Python中编写图遍历算法。


Maybe someone could give me a hint. Is it possible to measure the distance between 2 concepts/classes that belong to the same ontology?

For example, let's suppose I have an ontology with the Astronomy class and the Telescope class. There is a link between both, but it is not a direct link. Astronomy has a parent class called Science, and Telescope has a parent class called Optical Instrument which belongs to its parent called Instrumentation, that is related to a class called Empirical Science that finally belongs to a class called Science.

So there is an indirect link between Telescope and Astronomy, and I want to find out the number of steps needed to reach one class starting from the another one.

Is there an easy SPARQL query that resolves that question? Or are there better ways to do that job? Or is not possible to find that out using Semantic Web paradigm?

Any hint will be very appreciated.

解决方案

In my understanding SPARQL doesn't contain any recursive constructions to be able to measure indirect link of arbitrary length. The best you could do is to prepare set of queries distance_1(a, b), distance_2(a, b)... to check for specific distance between two concepts.

Another alternative is to discover this information using non-SPARQL technology, for example writing graph traversing algorithm in Python with RDFlib.

这篇关于测量RDF / OWL图中类之间的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆