Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OWL ObjectProperty loading as annotation in 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.

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?

like image 1000
Noor Avatar asked Jan 17 '26 21:01

Noor


1 Answers

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.

like image 185
loopasam Avatar answered Jan 21 '26 08:01

loopasam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!