rdf模式中域和范围之间的区别? [英] Difference between domain and range in rdf schema?

查看:91
本文介绍了rdf模式中域和范围之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能举例说明 rdfs:domain 和 rdfs:range 之间的区别吗?什么时候应该使用域,什么时候使用范围?我已经阅读了 h w3c rdf 入门,但我不明白其中的区别

could you please explain me the difference between rdfs:domain and rdfs:range with an example? and when should i use domain and when range? i have read h w3c rdf primer but i did not understand the difference

推荐答案

从简单的角度来看,域和范围属性可以让您深入了解该属性将主题链接到对象的方式.

From a simplistic point of view, the domain and range properties are there to give you insight into the way that the property links a subject to an object.

>

域属性的情况下,当您使用具有此关联属性的属性将主体链接到客体时,主体就属于事物类型域中指定.例如,我们查看一个词汇表,我们看到我们财产的域是一个项目.因此,简单地说,只要使用name"属性描述的主题是一种项目类型(或者可能是一种项目类型),那么您继续使用该术语来描述该事物应该没有问题,因为大多数其他人会解释说,如果使用这个术语来描述某事,那么它就是一个项目.您会发现不仅是人类,还有机器(在本例中为推理机)做出相同的推断.

In the case of the domain property, when you link a subject to an object using a property with this associated attribute, then the subject qualifies as a type of thing specified in the domain. For example, we look at a vocabulary and we see that the domain of our property is a Project. So, simply put, as long as the subject being described using the "name" attribute is a type of project (or could be a type of project), then you should have no problem going ahead using that term to describe that thing, because most other people will interpret that if something is described using this term, then it is a project. You'll find it is not only humans but also machines (or reasoners in this case) that make the same inferences.

范围的作用与域完全一样,但是对于这个域,它适用于语句的宾语,而不是主语.一个警告;您有时可能会遇到域或范围适用于不止一件事的情况.在这种情况下,它意味着主语或宾语(域或范围)是指定的所有类型(交集而不是并集).

The range works exactly like the domain, but with this one, it applies to the object of the statement and not the subject. A word of caution; you might at times come across instances where the domain or range applies to more than one thing. In this case, it means that the subject or object (domain or range) is all of the types specified (the intersection not the union).

这篇关于rdf模式中域和范围之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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