Hello,

I am trying to process RDFS and have trouble how to get to the values from the 
extensions.

I can iterate using for example
model.listSubjects().next().getRequiredProperty(RDFS.label)
model.listSubjects().next().getLocalName()
model.listSubjects().next().listProperties().next().getResource()

to get labels, etc.


But I need to also get to the extensions. There is example 42 here: 
https://www.w3.org/TR/rdf-primer/



 <rdf:Property rdf:ID="Breaker.OperatedBy">

   <rdfs:label xml:lang="en">OperatedBy</rdfs:label>

   <rdfs:domain rdf:resource="#Breaker" />

   <rdfs:range rdf:resource="#ProtectionEquipment" />

   <cims:inverseRoleName rdf:resource="#ProtectionEquipment.Operates" />

   <cims:multiplicity 
rdf:resource="http://www.cim-logic.com/schema/990530#M:0..n"; />

   <rdfs:comment>"Circuit breakers may be operated by

       protection relays."</rdfs:comment>

</rdf:Property>



<rdf:Property rdf:ID="ProtectionEquipment.Operates">

   <rdfs:label xml:lang="en">Operates</rdfs:label>

   <rdfs:domain rdf:resource="#ProtectionEquipment" />

   <rdfs:range rdf:resource="#Breaker" />

   <cims:inverseRoleName rdf:resource="#Breaker.OperatedBy" />

   <cims:multiplicity 
rdf:resource="http://www.cim-logic.com/schema/990530#M:0..n"; />

   <rdfs:comment>"Circuit breakers may be operated by

       protection relays."</rdfs:comment>

</rdf:Property>

I would like to know if there is a method that I can use to get the values of 
cims:inverseRoleName or cims:multiplicity? So that I get 
#ProtectionEquipment.Operates and http://www.cim-logic.com/schema/990530#M:0..n 
as an answer

Regards
Chavdar

Reply via email to