Hi Jiba,
context_tile is created via Protege as a DataProperty
in the owl file it is written as:
<owl:DatatypeProperty rdf:about="urn:absolute:DareKnowledgeBase#context_title">
<rdfs:subPropertyOf rdf:resource="urn:absolute:DareKnowledgeBase#context_data_prop"/>
<rdf:type rdf:resource="
http://www.w3.org/2002/07/owl#FunctionalProperty"/> <rdfs:domain rdf:resource="urn:absolute:DareKnowledgeBase#Context"/>
<rdfs:range rdf:resource="
http://www.w3.org/2001/XMLSchema#string"/> </owl:DatatypeProperty>
In my python code I load this ontology and create an instance of the class Context with :
self.my_context = setting.DKB.namespace.Context(self.prefix)
setting.DKB.namespace.context_title[self.my_context].append(self.title)
setting.DKB.namespace.context_prefix[self.my_context].append(self.prefix)
And now after saving in another ontology rdf/xml file I have these lines added:
<Context rdf:about="#test1">
<rdf:type rdf:resource="
http://www.w3.org/2002/07/owl#NamedIndividual"/> <context_lastset rdf:datatype="
http://www.w3.org/2001/XMLSchema#integer">1</context_lastset>
<context_prefix rdf:datatype="
http://www.w3.org/2001/XMLSchema#string">test1</context_prefix>
<context_title rdf:datatype="
http://www.w3.org/2001/XMLSchema#string">Environment for basic tests</context_title>
</Context>
When I open it with Protege I can see that these are annotations not properties.
Am I misunderstanding something?
Thanks for your help.
Amélie