- From: Paul Groth <p.t.groth@vu.nl>
- Date: Wed, 12 Dec 2012 23:23:27 +0100
- To: Provenance Working Group <public-prov-wg@w3.org>
- CC: Egon Willighagen <egon.willighagen@gmail.com>
- Message-ID: <686C5F05-375A-44DE-99D3-871B25849FA6@vu.nl>
Begin forwarded message: > Resent-From: <p.t.groth@vu.nl> > From: Egon Willighagen <egon.willighagen@gmail.com> > Date: December 12, 2012, 22:56:42 GMT+01:00 > To: "Groth, P.T." <p.t.groth@vu.nl> > Cc: Provenance Working Group <public-prov-wg@w3.org> > Subject: Re: Element names in prov-xml > > On Wed, Dec 12, 2012 at 10:48 PM, Paul Groth <p.t.groth@vu.nl> wrote: >> I've been having a chat with Egon Willighagen in twitter about the element name case in prov-xml. You can see excerpts below. The key question is why element names are lower case e.g <prov:entity ...> and not upper case. This does not correspond to the convention in rdf/xml plus it looks a bit weird when sitting next to the turtle. > > The relevant section in the 2004 RDF/XML spec is 2.13 which describes > the behavior: > > "It is common for RDF graphs to have rdf:type predicates from subject > nodes. These are conventionally called typed nodes in the graph, or > typed node elements in the RDF/XML. RDF/XML allows this triple to be > expressed more concisely. by replacing the rdf:Description node > element name with the namespaced-element corresponding to the RDF URI > reference of the value of the type relationship." > > You can test it with this XML snippet > > <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:dc="http://purl.org/dc/elements/1.1/" > xmlns:prov="http://www.w3.org/ns/prov#"> > <prov:entity rdf:about="ex:article"> > <dc:title>Crime rises in cities</dc:title> > </prov:entity> > </rdf:RDF> > > here -> http://www.rdfabout.com/demo/validator/ > > If you 'validate' it, it will also create other formats, showing that > the above RDF/XML has a rdf:type prov:entity ... that confirms that > convention. > > Section 2.13 is not > >> Do we have a good explanation for this? > > Also note that my RDF/XML snippet uses rdf:about rather than prov:id > ... I have to check whether rdf:ID or rdf:about is more appropriate, > but that would be closer to RDF/XML too than prov:id ... but that's a > separate thing you may want to look at. > > Egon > > > -- > Dr E.L. Willighagen > Postdoctoral Researcher > Department of Bioinformatics - BiGCaT > Maastricht University (http://www.bigcat.unimaas.nl/) > Homepage: http://egonw.github.com/ > LinkedIn: http://se.linkedin.com/in/egonw > Blog: http://chem-bla-ics.blogspot.com/ > PubList: http://www.citeulike.org/user/egonw/tag/papers
Received on Wednesday, 12 December 2012 22:25:43 UTC