OWL punning是否可以帮助定义对象属性上的数据属性? [英] Can OWL punning help in defining data properties on object property?

查看:107
本文介绍了OWL punning是否可以帮助定义对象属性上的数据属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Punning(在OWL 2 DL中引入的 )允许为类和对象属性赋予相同的名称(IRI)(请参见

Punning (which was introduced in OWL 2 DL) allows one to give the same name (IRI) to a Class and an Object Property (see Association Example).

我可以使用这种元建模方式在关系上附加属性吗?

Can I use this way of meta-modelling to attach attributes on a relation?

例如,关系drives连接PersonVehicle.我想指定驱动Vehiclevelocity,并且此属性属于drives.通过调整,我可以通过指定一个类和一个名为drives的对象属性来将drives建模为关联类.我猜想这将使我拥有一些对象属性,这些对象属性具有以某种方式与之关联的数据属性.

For instance, the relation drives connects Person and Vehicle. I want to specify the velocity with which the Vehicle is driven, and this property belongs on drives. Punning allows me to model drives as an association class by specifying both a class and an object property named drives. I'm guessing this would allow me to have object properties that have data properties associated with them somehow.

我想知道这是否是正确的解决方法.我想念什么吗?

I would like to know whether this is the correct way of going about it. Am I missing something?

推荐答案

Punning(在OWL 2 DL中引入)允许相同的操作 类和对象属性的名称(IRI)(请参阅关联 示例).

Punning (which was introduced in OWL 2 DL) allows one to give the same name (IRI) to a Class and an Object Property (see Association Example).

我可以使用这种元建模方式将属性附加到 关系吗?

Can I use this way of meta-modelling to attach attributes on a relation?

据我所知,您可以对一个类和一个属性使用相同的IRI,但是我认为它并不能真正帮助您寻找所需的元建模.

As far as I can tell, you can you use the same IRI for both a class and a property, but I don't think it will really help you in the kind of meta-modelling that you're looking for.

例如,关系驱动器连接人员和车辆.我想 指定车辆的行驶速度,以及 该属性属于驱动器. Punning使我可以将驱动器建模为 通过同时指定类和对象属性来关联类 命名驱动器.我猜这会让我有反对意见 具有与之相关联的数据属性的属性.

For instance, the relation drives connects Person and Vehicle. I want to specify the velocity with which the Vehicle is driven, and this property belongs on drives. Punning allows me to model drives as an association class by specifying both a class and an object property named drives. I'm guessing this would allow me to have object properties that have data properties associated with them somehow.

具有相同的IRI表示一个类,而一个属性实际上并没有帮助.听起来您想要的是一种固定的关系.您想用以下方式表示这一点:

Having the same IRI denote a class and a property doesn't really help here. It sounds like what you want is a reified relation. You'd want to denote this in a way like:

person42 drives driving74  
driving74 hasVehicle vehicle89  
driving74 hasVelocity 88.8

这实际上是最典型的方法.如果确实愿意,可以使用驱动器来命名一个类,并且可以将 driving74 设为该类的实例,这可能会提示用户之间存在某种联系他们.也就是说,您可以将架构设置为:

That's really the most typical way to do this. If you really want to, you can use drives to name a class, and you can make driving74 an instance of that class, which might suggest to users that there's some connection between them. That is, you could make your schema be:

drives a owl:Class  
hasVehicle rdfs:domain drives 
hasVehicle rdfs:range Vehicle   
hasVelocity rdfs:domain drives  
hasVelocity rdfs:range Velocity

drives a owl:ObjectProperty  
drives rdfs:domain Person  
drives rdfs:range drives

您可以这样做,也许会使某些用户更清楚地看到连接,尽管在我的观点中,它并没有那么有用,并且可能会使事情更加混乱.

You can do that, and maybe it would make the connection more apparent to some users, though in my opinion, it's not really all that helpful, and might just make things more confusing.

这篇关于OWL punning是否可以帮助定义对象属性上的数据属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆