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

Remove BlankNode requirements from RDFTermFactory.createGraph()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1.0
    • 0.2.0
    • None
    • None

    Description

      RDFTermFactory.createGraph
      says:

      > BlankNode objects added to the Graph returned from this method SHOULD be mapped using the createBlankNode(String) of this factory, called using the BlankNode.uniqueReference() as the parameter, before they are inserted into the Graph.

      I suggest to remove this paragraph as it is very specific, and I disagree on the need for such a mapping. It is also strange for the RDFTermFActory to put requirements on later calls on the methods of Graph. The pattern of calling createBlankNode with a uniqueReference() is not shown elsewhere.

      Note that simple does such a mapping, so this bug would also imply to change this:

      https://github.com/apache/incubator-commonsrdf/blob/master/simple/src/main/java/org/apache/commons/rdf/simple/GraphImpl.java#L81

      .. but I think COMMONSRDF-15 should decide on that matter.

      Attachments

        Issue Links

        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:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment