OWL Ontology:表示递增的数字,如第一、第二、第三
我对我正在制作的 OWL 本体有疑问。我有一个实际上是 ID 类的类,我想要有实例:第一、第二、第三等。
第一个解决方案我想为这个类创建个体{第一,第二,第三等},但是我必须写大量的个体。
另一个解决方案是创建一个数据属性,该属性将与我的类型为“整数”的类连接。
第二种解决方案看起来更合适,但问题是我不能代表“第一”这个词,只能代表数字 1。
你知道我该怎么做吗?
I have a question about an OWL ontology that I am making. I have a class that is actually an ID class and I would like to have instances: first, second, third etc.
The first solution that I have figured is creating individuals {first, second, third etc} for this class, but then I have to write a huge number of individuals.
The other solution is to create a data property that will be connected with my class that has type "integer".
The second solution looks more appropriate but the thing is that I can't represent the word "first", just the number 1.
Do you know how I can do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建一类由整数唯一标识的序数,如下所示(在 Turtle语法):
注意
owl:hasKey
的使用(在 OWL 2 中引入)这意味着:hasPosition
的值标识一个唯一的实例。该属性是功能性的,因此一个实例不能有两个不同的位置。You could create a class of ordinals that are uniquely identified by an integer, like so (in Turtle syntax):
Note the use of
owl:hasKey
(introduced in OWL 2) which means that the value of:hasPosition
identifies a unique instance. The property is functional so that an instance cannot have two distinct positions.