RDF/XML syntax for quads

Hey,

we have a use case where we need an RDF format in XML syntax that
1. supports named graphs
2. has a convenient structure for XSLT transformations

RDF/XML fails at #1, TriX fails at #2.

I suggest extending RDF/XML with a concept of named graph, similarly
to how TriG extends Turtle:

<rdf:RDF>

  <!-- default graph -->
  <rdf:Description>
    <foaf:mbox rdf:resource="mailto:semantic-web@w3.org"/>
  </rdf:Description>

  <!-- named graph -->
  <rdf:Graph rdf:name="https://www.w3.org/TR/rdf-syntax-grammar/">

    <rdf:Description rdf:about="https://www.w3.org/TR/rdf-syntax-grammar/">
      <dct:title>RDF 1.1 XML Syntax</dct:title>
    </rdf:Description>

  </rdf:Graph>

</rdf:RDF>

As far as I can see, the only required additions would be rdf:Graph
element and rdf:name attribute.

Has anyone attempted something like this? I would be willing to try to
implement a writer for Jena, to start with.


Martynas
atomgraph.com

Received on Thursday, 9 June 2016 15:44:56 UTC