Uploaded image for project: 'Apache Commons RDF'
  1. Apache Commons RDF
  2. COMMONSRDF-55

Stream of Jena quads use wrong IRI for default graph

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.5.0
    • jena
    • None

    Description

      See https://travis-ci.org/apache/commons-rdf/builds/195548479

      org.apache.commons.rdf.jena.DatasetJenaTest
      streamLanguageTagsCaseInsensitive(org.apache.commons.rdf.jena.DatasetJenaTest)  Time elapsed: 0.012 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<<http://example.com/s1> <http://example.com/greeting> "Hello"@EN-GB <urn:x-arq:DefaultGraph>.> but was:<<http://example.com/s1> <http://example.com/greeting> "Hello"@en-GB .>
      

      Jena uses the IRI `<urn:x-arq:DefaultGraph>` internally to represent the default graph within datasets - we need to recognize that on the way out of a `JenaDatasetImpl.stream()` and possibly in the `asQuad(JenaQuad)` converter and replace it with `Optional.empty()` so the default graph appears the same across implementations.

      The `AbstractDatasetTest` should be augmented to do more tests on the default graph, including `.stream()`, `.iterate()`, `.contains()` and `.remove()`1.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stain Stian Soiland-Reyes
            stain Stian Soiland-Reyes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment