简体   繁体   English

本体中对象属性的属性

[英]Attributes on object property in ontology

How to associate attributes with object properties in ontology ?如何在本体中将属性与对象属性相关联?

I have come across a way in which object property can be defined as a class.我遇到了一种可以将对象属性定义为类的方法。 But this approach makes defining rules difficult.但是这种方法使得定义规则变得困难。 Is there any other way ?还有其他方法吗?

You probably have to use blank nodes to handle extra properties, as the objectproperty don't have the possibility.您可能必须使用空白节点来处理额外的属性,因为 objectproperty 没有这种可能性。

Otherwise you have to add a new class for the relationship, so what you currently have as a objectproperty becomes a class, and you get a new objectproperty for the relationship between your old class and old objectproperty (which now becomes a class)否则,您必须为关系添加一个新类,因此您当前拥有的对象属性成为一个类,并且您将获得旧类和旧对象属性(现在成为一个类)之间关系的新对象属性

I have created a class for my object property and I have kept the original object property as it is.我为我的对象属性创建了一个类,并且保留了原始对象属性。 Attributes are defined on the class.属性是在类上定义的。 Rules can be defined on the object property as we are used to do it and attributes can be fetched from the class which will be treated as internal class.可以在对象属性上定义规则,因为我们习惯于这样做,并且可以从将被视为内部类的类中获取属性。

I have used OWL API for this.我为此使用了 OWL API。

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

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