From: Sura M. <sur...@ya...> - 2013-03-11 21:54:18
|
Hi, I am using dotnetrdf 0.9.0, and am trying to retrieve the DatatypeProperties in my ontology. My ontology has DatatypeProperties, as well as ObjectProperties as shown below: <owl:DatatypeProperty rdf:about="&ve;toName"> <rdfs:label xml:lang="en">toName</rdfs:label> <rdfs:domain rdf:resource="&ve;CommunicationMessage"/> <rdfs:range rdf:resource="&xsd;string"/> </owl:DatatypeProperty> <owl:ObjectProperty rdf:about="&ve;isSituationOf"> <rdfs:label xml:lang="en">isSituationOf</rdfs:label> <rdfs:domain rdf:resource="&ve;Situation"/> <rdfs:subPropertyOf rdf:resource="&ve;isSnapshotPartOf"/> </owl:ObjectProperty> However, the below code fragment returns only ObjectProperties: ontologyGraph = new OntologyGraph(); FileLoader.Load(ontologyGraph, "ve-ontology.owl"); foreach (OntologyProperty prop in ontologyGraph.AllProperties) Console.WriteLine(prop); Can someone please point me out the way to retrieve the DatatypeProeprties in my ontology? Thanks in advance /Sura |