简体   繁体   English

rdfs:subPropertyOf 和 rdfs:domain

[英]rdfs:subPropertyOf and rdfs:domain

Is the following statement possible?下面的说法可能吗?

:a rdfs:subPropertyOf :b
:b rdfs:domain :aDomain

Thus, :a rdfs:domain :aDomain

Are these two statements possible?这两种说法可能吗?

:a rdfs:subPropertyOf :b .
:b rdfs:domain :aDomain .

Certainly.当然。 The first states that every :a of something is also :b , and the seconds states that every object of :b is an :aDomain .第一个声明某事物的每个:a也是:b ,第二个声明每个:b的 object 都是一个:aDomain

Is this statement possible?这种说法可能吗?

:a rdfs:domain :aDomain .

Yes, it states that every object of :a is an :aDomain .是的,它声明:a的每个 object 都是一个:aDomain

Is it implied by the first two statements, meaning that adding this statement to a graph already containing the two does not change whatever can be inferred about the known individuals?前两个陈述是否暗示了这一点,这意味着将这个陈述添加到已经包含这两个陈述的图中不会改变可以推断出的关于已知个体的任何内容? Yes.是的。 In the first case, being an object of :a implies also being an object of :b , and thus being an :aDomain , which implies that an object of :a is an :aDomain , exactly what the statement says.在第一种情况下,作为:a的 object 意味着也是:b的 object ,因此是:aDomain :aDomain ,这意味着 object 的陈述是:a

TL;DR: according to the RDFS semantics, if everything that has property :a also is of type :aDomain , it does not automatically imply that :a rdfs:domain:aDomain ; TL;DR:根据 RDFS 语义,如果所有具有属性:a东西也是:aDomain类型,它不会自动暗示:a rdfs:domain:aDomain according to the OWL semantics, if everything that has property :a also is of type :aDomain , it logically implies that :a rdfs:domain:aDomain .根据 OWL 语义,如果所有具有属性:a东西也是:aDomain类型,那么它在逻辑上暗示:a rdfs:domain:aDomain

The answer to this question is more subtle than it may seem because there is a slight difference between the semantics of RDFS and that of OWL.这个问题的答案比看起来更微妙,因为 RDFS 的语义和 OWL 的语义之间存在细微差别。 Stanislav Kralin highlight this subtlety in his laconic comment to the question.斯坦尼斯拉夫·克拉林 (Stanislav Kralin ) 在他对这个问题的简洁评论中强调了这种微妙之处。 The RDF snippet given by Costas can be interpreted according to the RDFS semantics or the OWL semantics (or even the RDF semantics , or the simple semantics , or other semantic extensions ). Costas给出的 RDF 片段可以根据RDFS 语义或 OWL 语义(甚至是RDF 语义,或简单语义,或其他语义扩展)来解释。

According to simple semantics and RDF semantics, the terms rdfs:subPropertyOf and rdfs:domain do not have any special meaning and therefore the conclusion :a rdfs:domain:aDomain does not hold.根据简单语义和 RDF 语义,术语rdfs:subPropertyOfrdfs:domain没有任何特殊含义,因此结论:a rdfs:domain:aDomain不成立。

According to RDFS semantics, the conclusion does not hold either, but it is less obvious.根据RDFS语义,结论也不成立,但不太明显。 In RDFS, if you have:在 RDFS 中,如果您有:

:a rdfs:subPropertyOf :b .
:b rdfs:domain :aDomain .
?x :a ?y .

for any IRI or blank node ?x and any IRI or blank node or literal ?y , then you can conclude that:对于任何 IRI 或空白节点?x和任何 IRI 或空白节点或文字?y ,您可以得出以下结论:

?x rdf:type :aDomain .

but you cannot conclude that:但你不能得出这样的结论:

:a rdfs:domain :aDomain .

This is because RDFS does not have an extensional semantics .这是因为 RDFS 没有扩展语义 This means that if everything that has the type C also has the type D , you cannot conclude (from this alone) that C is a subclass of B , and if everything that has the property p has type C , then you cannot conclude (from this alone) that p has the domain C .这意味着如果所有具有C类型的东西也具有类型D ,那么您不能(仅从这一点)断定CB的子类,并且如果具有属性p的所有东西都具有类型Z0D61F8370CAD1D412D54B仅此一项) p具有域C In 2004, RDF 1.0 presented an alternative version of RDFS with extensional semantics , that highlighted the issue. 2004 年,RDF 1.0 提出了具有扩展语义的 RDFS的替代版本,突出了这个问题。 In 2013, Franconi et al. 2013 年,Franconi 等人。 discussed The Logic of Extensional RDFS and its properties (link also provided by Stanislas Kralin in his comment to the OP).讨论 了扩展 RDFS 的逻辑及其属性(Stanislas Kralin 在对 OP 的评论中也提供了链接)。

Finally, OWL semantics (both the Direct Semantics or the RDF-based semantics ) has an extensional semantics, so the conclusion holds when interpreting the RDF snippet according to these semantics:最后,OWL 语义(直接语义基于 RDF 的语义)具有外延语义,因此在根据这些语义解释 RDF 片段时,结论成立:

:a rdfs:subPropertyOf :b .
:b rdfs:domain :aDomain .

entails (that is, logically implies):蕴含(即逻辑上暗示):

:a rdfs:domain :aDomain .

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

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