Noor
Noor

Reputation: 20150

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?

Upvotes: 3

Views: 3605

Answers (4)

Lillibilli
Lillibilli

Reputation: 23

I've had the same problem: "Object Properties" were shown as "Annotation Properties". The reason was that the triples defining these properties as "Object Properties" were not present in my ontology, since the import did not work correctly: The import statement was (using ttl syntax):

<http://my.great.ontology/resources20230621/> owl:imports ifc: .

The prefix was defined

@prefix ifc: <http://standards.buildingsmart.org/IFC/DEV/IFC4/ADD2_TC1/OWL#> .

Nevertheless Protege decided to give the imported statement the Ontology IRI https://standards.buildingsmart.org/IFC/DEV/IFC4/ADD2_TC1/OWL# (while still using the "Location" http://standards.buildingsmart.org/IFC/DEV/IFC4/ADD2_TC1/OWL#)

enter image description here

So, I ended up, with all statements in the imported ontology having URIs starting with "https://" while the ones from my file were resolved to "http://....". I fixed it by changing the prefix definition to

@prefix ifc: <https://standards.buildingsmart.org/IFC/DEV/IFC4/ADD2_TC1/OWL#> .

Upvotes: 0

simon
simon

Reputation: 1

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.

Upvotes: 0

user4559700
user4559700

Reputation: 1

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

Upvotes: 0

loopasam
loopasam

Reputation: 3136

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.

Upvotes: 1

Related Questions