COMMONSRDF-55: Support Jena's urn:x-arq:DefaultGraph and friends Jena uses the IRIs <urn:x-arq:DefaultGraph> and <urn:x-arq:DefaultGraphNode> to represent the default graph, not null.
This code recognize these specially so they appear in Commons RDF land as quad.getGraphName() == Optional.empty() rather than as IRIs (but only if adapted from a JenaIRI or Jena Quad) Project: http://git-wip-us.apache.org/repos/asf/commons-rdf/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-rdf/commit/6d4e333d Tree: http://git-wip-us.apache.org/repos/asf/commons-rdf/tree/6d4e333d Diff: http://git-wip-us.apache.org/repos/asf/commons-rdf/diff/6d4e333d Branch: refs/heads/COMMONSRDF-47 Commit: 6d4e333d9398c1f7533a4e20a5768eada97a4ea6 Parents: 5e2430f 7183369 Author: Stian Soiland-Reyes <[email protected]> Authored: Wed Feb 8 14:40:03 2017 +0000 Committer: Stian Soiland-Reyes <[email protected]> Committed: Wed Feb 8 14:40:03 2017 +0000 ---------------------------------------------------------------------- .../commons/rdf/api/AbstractDatasetTest.java | 45 ++++++ .../org/apache/commons/rdf/jena/JenaRDF.java | 32 +++++ .../commons/rdf/jena/impl/AbstractQuadLike.java | 70 +++++++++- .../rdf/jena/impl/InternalJenaFactory.java | 2 +- .../rdf/jena/DefaultGraphInQuadTest.java | 136 +++++++++++++++++++ .../rdf/jena/GeneralizedRDFQuadTest.java | 127 +++++++++++++++++ .../rdf/jena/GeneralizedRDFTripleTest.java | 85 ++++++++++++ .../apache/commons/rdf/jena/JenaRDFTest.java | 1 - 8 files changed, 491 insertions(+), 7 deletions(-) ----------------------------------------------------------------------
