It would be easier to understand what you're doing if you provide source
code + the raw RDF data - and attachments are not allowed on this
mailing list.

On 02.11.19 07:48, Dr. Chavdar Ivanov wrote:
>
> Hello,
>
>  
>
> I hit to something strange and I wonder if this is some bug to be fixed.
>
>  
>
> If I read the attached rdf which now has only 2 elements which are the
> same with the only difference that one has “cims:isFixed”.
>
>  
>
> Below I pasted what I am getting in ModelCom. There are some GUIDs
> appearing and
>
> The iteration of
> model.listSubjects().next().getRequiredProperty(RDF.*/type/*) fails as
> org.apache.jena.shared.PropertyNotFoundException:
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type
>  
>  
> If it really a bug and how this could be fixed?
> It seems it does not related to cims: as there are other cims and it
> is all fine with them.
> <cims:isFixed rdfs:Literal="XYZ" />
> It seems that rdfs:Literal is not treated.
>
>  
>
> Regards
>
> Chavdar
>
>  
>
>  
>
> The ModelCom is in case there is isFixed in the rdf
>
>  
>
> <ModelCom   {63ded209-84f9-44cf-a61e-7d7ce8b22630 @rdfs:Literal "XYZ";
> cim:Breaker.OperatedBy @rdf:type rdf:Property; cim:Breaker.OperatedBy
> @cims:isFixed *63ded209-84f9-44cf-a61e-7d7ce8b22630*;
> cim:Breaker.OperatedBy @rdfs:comment "\"Circuit breakers may be
> operated by
>
>        protection relays.\""; cim:Breaker.OperatedBy
> @cims:multiplicity http://www.cim-logic.com/schema/990530#M:0..n;
> cim:Breaker.OperatedBy @cims:inverseRoleName
> cim:ProtectionEquipment.Operates; cim:Breaker.OperatedBy @rdfs:range
> cim:ProtectionEquipment; cim:Breaker.OperatedBy @rdfs:domain
> cim:Breaker; cim:Breaker.OperatedBy @rdfs:label "OperatedBy"@en} | 
> [*63ded209-84f9-44cf-a61e-7d7ce8b22630*,
> http://www.w3.org/2000/01/rdf-schema#Literal, "XYZ"]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
> http://www.w3.org/1999/02/22-rdf-syntax-ns#Property]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#isFixed,
> 63ded209-84f9-44cf-a61e-7d7ce8b22630]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#comment, "\"Circuit breakers may
> be operated by
>
>        protection relays.\""]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#multiplicity,
> http://www.cim-logic.com/schema/990530#M:0..n]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#inverseRoleName,
> http://iec.ch/TC57/CIM100#ProtectionEquipment.Operates]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#range,
> http://iec.ch/TC57/CIM100#ProtectionEquipment]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#domain,
> http://iec.ch/TC57/CIM100#Breaker]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#label, "OperatedBy"@en]>
>
>  
>
>  
>
> If I delete the isFixed the result is
>
> <ModelCom   {cim:Breaker.OperatedBy @rdf:type rdf:Property;
> cim:Breaker.OperatedBy @rdfs:comment "\"Circuit breakers may be
> operated by
>
>        protection relays.\""; cim:Breaker.OperatedBy
> @cims:multiplicity http://www.cim-logic.com/schema/990530#M:0..n;
> cim:Breaker.OperatedBy @cims:inverseRoleName
> cim:ProtectionEquipment.Operates; cim:Breaker.OperatedBy @rdfs:range
> cim:ProtectionEquipment; cim:Breaker.OperatedBy @rdfs:domain
> cim:Breaker; cim:Breaker.OperatedBy @rdfs:label "OperatedBy"@en} | 
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
> http://www.w3.org/1999/02/22-rdf-syntax-ns#Property]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#comment, "\"Circuit breakers may
> be operated by
>
>        protection relays.\""]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#multiplicity,
> http://www.cim-logic.com/schema/990530#M:0..n]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#inverseRoleName,
> http://iec.ch/TC57/CIM100#ProtectionEquipment.Operates]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#range,
> http://iec.ch/TC57/CIM100#ProtectionEquipment]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#domain,
> http://iec.ch/TC57/CIM100#Breaker]
> [http://iec.ch/TC57/CIM100#Breaker.OperatedBy,
> http://www.w3.org/2000/01/rdf-schema#label, "OperatedBy"@en]>
>

Reply via email to