ISSUE-82: How should repeated graph iri labels be handled in TriG
TriG repeated graph iris
How should repeated graph iri labels be handled in TriG
- State:
- CLOSED
- Product:
- RDF Turtle
- Raised by:
- Gavin Carothers
- Opened on:
- 2011-12-21
- Description:
- There are a number of ways of handling the case of multiple instances of a graph iri labelling a number graph statements.
Sample TriG Document:
@base <http://example.com/>
<graph> { <s> <p> <o> . }
<graph> { <s2> <p> <o2> . }
1) Disallowed (TriG input document behaviour)
"In a TriG document a graph IRI must not be used to label more then one graph."
Result: Parse Error
2) Merge
"In a TriG document graph statements with the same graph IRI should be merged to form a single RDF Graph."
Result:
@base <http://example.com/>
<graph> { <s> <p> <o> .
<s2> <p> <o2> . }
Note: BlankNode labels in each graph statement would either result in shared blank nodes or independent blank nodes (??)
3) Replace
"Upon encountering a graph statement with the same graph IRI of another graph statement, the most recently parsed RDF Graph should replace the earlier one in the RDF Dataset."
Result:
@base <http://example.com/>
<graph> { <s2> <p> <o2> . }
4) Ignore
"Graph statements with a repeated graph IRI are ignored. Only the first graph statement is added to the RDF Dataset."
Result:
@base <http://example.com/>
<graph> { <s> <p> <o> . }
5) Document Decides
Apply one of 1-4 on the basis of a directive "@policy". Default to Disallowed.
- Related Actions Items:
- No related actions
- Related emails:
- TriG statement to resolve ISSUE-82 (from gavin@carothers.name on 2012-01-25)
- Re: RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from phayes@ihmc.us on 2012-01-04)
- Re: RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from sandro@w3.org on 2012-01-03)
- Re: RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from steve.harris@garlik.com on 2011-12-21)
- Re: RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from lee@thefigtrees.net on 2011-12-21)
- Re: RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from andy.seaborne@epimorphics.com on 2011-12-21)
- Re: RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from gavin@carothers.name on 2011-12-21)
- RDF-ISSUE-82 (TriG repeated graph iris): How should repeated graph iri labels be handled in TriG [RDF Turtle] (from sysbot+tracker@w3.org on 2011-12-21)
Related notes:
RESOLVE to close ISSUE-82 with the wording: "In a TriG document graph statements with the same graph IRI should be unioned to form a single RDF Graph. Blank nodes in each graph statement with the same label are considered to be the same blank node."
David Wood, 25 Jan 2012, 16:30:53Display change log