Skip to content

Support Named Graphs #51

Open
@FabienGandon

Description

@FabienGandon

This issue is to discuss adding minimal support for named graphs in RDF/XML and inspired by the "RDF/XML Source Declaration
W3C Member Submission, 5 September 2007"

One option would be to introduce an rdf:graph attribute and, as suggested for other attributes, the propagation rules would be like xml:lang, with the attribute defining the named graphs of the parsed triples for the descendant elements.
Also, as mentioned in other issues, I believe that it would be a good practice (from now own) to encourage the explicit mention of the RDF version as in rdf:version="1.2"

For instance Example 4 could be adapted as

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:ex="http://example.org/stuff/1.0/"
            xml:base="http://example.org/triples/"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
	    rdf:version="1.2">
			
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar" rdf:graph="http://inria.fr/graph1" >
  <ex:editor>
    <rdf:Description rdf:about="http://purl.org/net/dajobe/#me" rdf:graph="http://inria.fr/graph2">
      <ex:homePage rdf:resource="http://purl.org/net/dajobe/" /> 
      <ex:fullName>Dave Beckett</ex:fullName>
    </rdf:Description>
  </ex:editor>
  <dc:title>RDF 1.2 XML Syntax</dc:title>
</rdf:Description>

</rdf:RDF>

parsed as N-quads:

<http://www.w3.org/TR/rdf-syntax-grammar> <http://example.org/stuff/1.0/editor> <http://purl.org/net/dajobe/#me> <http://inria.fr/graph1> .
<http://www.w3.org/TR/rdf-syntax-grammar> <http://purl.org/dc/elements/1.1/title> "RDF 1.2 XML Syntax" <http://inria.fr/graph1> .
<http://purl.org/net/dajobe/#me> <http://example.org/stuff/1.0/homePage> <http://purl.org/net/dajobe/> <http://inria.fr/graph2> .
<http://purl.org/net/dajobe/#me> <http://example.org/stuff/1.0/fullName> "Dave Beckett" <http://inria.fr/graph2> .

Metadata

Metadata

Assignees

No one assigned

    Labels

    ms:future-workDefer this issue until a future version of the specificationspec:new-featureChange adding new functionality (class 4)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions