简体   繁体   English

个人可以在Protege上使用object属性连接到类吗?

[英]Can individual connect to class with object property on Protege?

is there any way individual (instance) connect to class with object property? 个人(实例)是否有任何方式使用对象属性连接到类? For example, individual in this case is module name: Web Programming. 例如,在这种情况下,个人是模块名称:Web Programming。 Object property : isClassified. 对象属性:isClassified。 Class: Network. 类:网络。

I've tried to define Web Programming as class, and it works because the domain and range are both classes. 我试图将Web编程定义为类,它的工作原理是因为域和范围都是类。 Same goes if I define both Web Programming & Network as individuals, it works. 如果我将Web编程和网络定义为个体,它也可以。 If the domain is a class and the range is individual, it still works. 如果域是一个类,范围是个体的,它仍然有效。 But what if the domain is individual and the range is class? 但是,如果域是个体的并且范围是类,该怎么办? Is there any way I can connect it with object property: isClassifiedIn? 有什么办法可以用object属性连接它:isClassifiedIn?

Protégé is an OWL 2 DL editor (since version 4). Protégé是一个OWL 2 DL编辑器(从版本4开始)。 In OWL 2 DL, an individual cannot be a class, and an object property must relate individuals to individuals only. 在OWL 2 DL中,个人不能是一个类,并且对象属性必须仅将个人与个人联系起来。 So what you want cannot be expressed in the way you formulate it. 所以你想要的东西不能以你制定它的方式表达出来。 However, you could do two things: 但是,你可以做两件事:

  1. use an annotation property instead of an object property. 使用注释属性而不是对象属性。 This may not be ideal because an OWL DL reasoner must ignore annotation properties in the reasoning process. 这可能不是理想的,因为OWL DL推理器必须忽略推理过程中的注释属性。 They are just that: annotations, similar to comments in a programming code. 它们只是:注释,类似于编程代码中的注释。
  2. relate the individual to another individual that has the same name as the class. 将个人与另一个与班级同名的个人联系起来。 Let me give details about this. 让我详细说明一下。

In OWL 2 DL, although it is not possible for individuals to be classes, it is possible for individual names to be class names at the same time. 在OWL 2 DL中,虽然个人不可能成为课程,但个人姓名可能同时成为课程名称 For instance, one can say (in Turtle syntax): 例如,可以说(在Turtle语法中):

ex:Module  a  owl:Class .
ex:Network  a  owl:Class, owl:Thing .
ex:isClassified  a  owl:ObjectProperty .
ex:webProgramming  a  ex:Module;
    ex:isClassified  ex:Network .

Note that ex:webProgramming here is not related to a class. 请注意, ex:webProgramming此处与类无关。 It is related to an individual of type owl:Thing . 它与owl:Thing类型的个体有关。 This individual has nothing to do, a priori, with the class named ex:Network , although it has the same name. 这个人与先前的名为ex:Network的类没有任何关系,尽管它具有相同的名称。 This is called "punning" in the OWL 2 specification. 这在OWL 2规范中称为“双关语”。

There is third way: change your knowledge model such that you do not encounter this problem. 还有第三种方法:改变你的知识模型,这样你就不会遇到这个问题。 I do not know your ontology, but it could be hinting at an antipattern that you should avoid. 我不知道你的本体论,但它可能暗示你应该避免的反模式。

You have to use "value". 你必须使用“价值”。 Write your own expression using the class expression editor. 使用类表达式编辑器编写自己的表达式。 Select the class Than write: "property" value "individual" 选择类比写:“属性”值“个人”

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

相关问题 Protege本体-个人可以参考课程吗? - Protege ontology - can an individual reference a class? Protege 问题:本体中 class 的 Object 属性断言 - Protege issue: Object property assertion for a class in ontology 何时向Protege中的个人主张“相同个人为”属性? - When to assert a 'Same Individual As' property to an individual in Protege? 保护对象:对象属性限制 1 - Protege: Object property restrictions 1 Protege中的DL查询与等效的类和对象属性有关 - DL query in Protege related to equivalent class and object property 在Protege中为个人定义属性值时使用枚举数据类型 - Using enumerated data type in defining property value for individual in Protege 如何在Protege中连接两个实例? - How can you connect two instances in Protege? SPARQL查询,用于检索有关一个人的所有对象属性(在Protege中) - SPARQL query for retrieving all object properties about one individual (in Protege) 本体:如果可以直接将属性分配给个人,为什么要在类上定义对象限制? - Ontologies: Why should I define object restrictions on a class if I can assign a property directly to the individual? 是否存在查询以查找在Protege中创建的本体中是否存在对象属性 - Is there a query to find whether an object property exists or not in an ontology created in Protege
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM