|
From: Rajendra S. <raj...@ya...> - 2015-06-01 14:11:23
|
Hi Rob,
Thanks for your response. I will look at the previous threads you sent me. --
Rajendra Singh
On Monday, June 1, 2015 8:33 AM, Rob Vesse <rv...@do...> wrote:
Rajendra
I will point you to some previous threads on this:
http://sourceforge.net/p/dotnetrdf/mailman/message/32563380/http://sourceforge.net/p/dotnetrdf/mailman/message/32848471/
Basically what these thread says is that no you cannot make dotNetRDF produce a particular RDF/XML output because we intentionally provide limited configurability over the compression options in order to prefer correctness.
If you want to generate a particular RDF output then what you actually need to do is to construct an appropriate graph. For example to get a <cim:ACLineSegment> element rather than a <rdf:Description> element then your graph needs to contain appropriate rdf:type statements
The focus for any RDF producing/consuming application should be what triples need to be expressed and not the serialisation (RDF/XML in your question) since that is irrelevant to the actual problem (and if it is relevant then your RDF system is IMO poorly designed)
Rob
From: Rajendra Singh <raj...@ya...>
Reply-To: Rajendra Singh <raj...@ya...>, dotNetRDF User Help and Support <dot...@li...>
Date: Friday, 29 May 2015 14:53
To: "dot...@li..." <dot...@li...>
Subject: [dotNetRDF-Support] Some more examples please
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="Hello">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------------------------------------------------------------------------------_______________________________________________dotNetRDF-Support mailing lis...@li...://lists.sourceforge.net/lists/listinfo/dotnetrdf-support
------------------------------------------------------------------------------
_______________________________________________
dotNetRDF-Support mailing list
dot...@li...
https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support
|