Warm tip: This article is reproduced from serverfault.com, please click

computer science-制作owl:Restrictions时owl:equivalentClass和rdfs; subClassOf有什么区别

(computer science - What is the difference between owl:equivalentClass and rdfs;subClassOf when making owl:Restrictions)

发布于 2020-11-28 16:42:14

我需要创建仅限于仅运往意大利的商品的商品。

我不完全明白之间的差别owl:equivalentClass,并rdfs:subClassOf在我的问题的情况下。

:deliversToItaly owl:equivalentClass [a owl:restriction; 
                                      owl:ownProperty ebay:shipsTo;
                                      owl:allValuesFrom geo:Italy].

:deliversToItaly rdfs:subClassOf [a owl:restriction; 
                                  owl:ownProperty ebay:shipsTo;
                                  owl:allValuesFrom geo:Italy].

有人可以解释两者之间的区别,并可能在我提供的两个示例之间的上下文中进行解释吗?

Questioner
Jake Jackson
Viewed
0
Renato Iannella 2020-11-29 12:52:41

语义上,你将类定义为Primitive(subClassOf)与Defined(equivalentClass)。主要区别在于在一个或两个方向上进行推断。

原始类是单向的:

  • 任何来自ShipsTo且具有意大利值的东西都可以推断为deliveryToItaly。Defined类是两个方向:
  • 如上所述
  • 可以推断出,凡是deliveryToItay的事物都具有来自意大利的值的shipTo

当你确信自己具有足够的类成员资格规则时,将使用Defined类-否则,Primitive仅用于必要的规则。