|
From: Rajendra S. <raj...@ya...> - 2015-05-29 13:56:04
|
Hi Support Personnel, I am very new to using dotNetRDF and have read the user guide provided. I was looking for more examples as the user guide just has a HelloWorld example. Could you please provide me with more examples or send me a link to examples. I am looking for RDF Serialization of the following kind:<?xml version="1.0" encoding="UTF-8"?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cim="http://iec.ch/TC57/2013/CIM-schema-cim16#" xmlns:entsoe="http://entsoe.eu/Secretariat/2013/ProfileExtension/3#" xmlns:md="http://iec.ch/TC57/61970-552/ModelDescription/1#"> <cim:ACLineSegment rdf:ID="_05b8bc87-9572-b819-9a7e-da38c51c67e9"> <cim:ACLineSegment.bch>9.22521e-005</cim:ACLineSegment.bch> <cim:ACLineSegment.gch>0</cim:ACLineSegment.gch> <cim:ACLineSegment.r>2.13202</cim:ACLineSegment.r> <cim:ACLineSegment.x>68.5707</cim:ACLineSegment.x> <cim:ConductingEquipment.BaseVoltage rdf:resource="#_1e505647-8161-652e-e505-01d6b51bcce1" /> <cim:Conductor.length>22</cim:Conductor.length> <cim:IdentifiedObject.name>N2X2</cim:IdentifiedObject.name> </cim:ACLineSegment> ... I don't know how to write the code to produce such RDF, all I get is of the form: <?xml version="1.0" encoding="utf-8"?><!DOCTYPE rdf:RDF [ <!ENTITY cim 'http://iec.ch/TC57/2013/CIM-schema-cim16#'> <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>]><rdf:RDF xml:base="http://www.example.org/" xmlns:cim="http://iec.ch/TC57/2013/CIM-schema-cim16#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="cim:AClineSegment"> <ns0:says xmlns:ns0="http://example.org/">Hello World</ns0:says> </rdf:Description>... How do I replace rdf:Description rdf:about=..., with more meaningful cim:ACLineSegment rdf:ID=... Any help would be much appreciated. -- Rajendra |