[英]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:
但是,你可以做两件事:
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.