在Protégé中将OWL ObjectProperty加载为注释 [英] OWL ObjectProperty loading as annotation in Protégé

查看:125
本文介绍了在Protégé中将OWL ObjectProperty加载为注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试加载本体论在Protégé中,但未按预期进行处理.最有问题的是,所有对象和数据属性都显示为注释,而不是数据属性和对象属性.

I'm trying to load an ontology in Protégé but it is not processed as expected. Most problematic is that all the Object and Data Properties appear as Annotation instead of Data Property and Object Property.

我有一个对象属性 kingdom :

<owl:ObjectProperty rdf:about="&wo;kingdom">
    <rdfs:label xml:lang="en">kingdom</rdfs:label>
    <rdfs:comment xml:lang="en">associates a taxon rank with a kingdom</rdfs:comment>
    <vs:term_status>testing</vs:term_status>
    <rdfs:range rdf:resource="&wo;Kingdom"/>
    <rdfs:domain rdf:resource="&wo;TaxonRank"/>
</owl:ObjectProperty>

/nature/life/Chordate#kingdom的值为/nature/life/Animal#kingdom作为其王国:

<wo:Phylum rdf:about="/nature/life/Chordate#kingdom">
    <rdfs:label>Vertebrates</rdfs:label>
    <wo:kingdom rdf:resource="/nature/life/Animal#kingdom"/>
</wo:Phylum>

但是,在Protégé中,该属性显示为注释.我不明白为什么它没有显示为王国的客体财产.

However, in Protégé, the property is showing as an annotation. I do not understand why it is not showing as an object property to kingdom.

这是为什么?

推荐答案

这似乎是Protege中的错误.如何解决:

It seems to be a bug in Protege. How to fix it:

  • 使用Protege打开文件index.rdf,导入一些文件需要一些时间.
  • 以RDF/XML格式保存本体,在要放置它时选择文件夹并命名为ontology.owl.扩展名很重要,将其另存为OWL文件.
  • 关闭Protege并重新打开它,打开文件ontology.owl,现在您应该看到正确显示的属性.
  • Open your file index.rdf with Protege, it takes a bit of time in order to import some files.
  • Save the ontology in RDF/XML format, pick the folder when you want to put it and call it ontology.owl. The extension is important, save it as OWL file.
  • Close Protege and re-open it, open the file ontology.owl, you should now see the property correctly displayed.

为什么这样做?我相信Protege会对.rdf感到困惑,并错误地解释了数据.

Why is it doing that? I believe Protege gets confused by the .rdf and interprets wrongly the data.

这篇关于在Protégé中将OWL ObjectProperty加载为注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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