OWL ObjectProperty loading as annotation in Protég

2020-06-23 09:19发布

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.

I have an 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 has the value /nature/life/Animal#kingdom for as its kingdom:

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

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.

enter image description here

Why is this?

3条回答
贼婆χ
2楼-- · 2020-06-23 09:54

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

  • 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.

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

查看更多
劳资没心,怎么记你
3楼-- · 2020-06-23 09:55

When I save my ontology as RDF/XML format, object property of instance becomes annotations. However, if the ontology is saved as Turtle Syntax, object property will be shown normally when opened with protege again.

查看更多
等我变得足够好
4楼-- · 2020-06-23 10:03

If you find that your object properties appear as annotations, the solution is to export as ontology. That will turn your annotations into classes.

查看更多
登录 后发表回答