...
...
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/administrator/ontologies/2014/2/untitled-ontology-5#fileName">
<rdfs:label>fileName</rdfs:label>
<rdfs:comment>Name of File</rdfs:comment>
<rdfs:domain rdf:resource="http://www.semanticweb.org/administrator/ontologies/2014/2/untitled-ontology-5#File"/>
<rdfs:range rdf:resource="&xsd;string"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/administrator/ontologies/2014/2/untitled-ontology-5#fileLastAccessed">
<rdfs:label>fileLastAccessed</rdfs:label>
<rdfs:comment>Time when the file was last accessed.</rdfs:comment>
<rdfs:domain rdf:resource="http://www.semanticweb.org/administrator/ontologies/2014/2/untitled-ontology-5#File"/>
<rdfs:range rdf:resource="&xsd;dateTime"/>
</owl:DatatypeProperty>
...
...
Above is a portion of the ontology that I have developed in protege.
You can see that datatype of the #fileName
properties is &xsd;string
and datatype of #fileLastAccessed
is &xsd;dateTime
I am developing an application in which I would need to programmatically read the datatype of a property.
My question is that how would I know programmatically the datatype of a property.