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

Demo-code to show advantages of exposed Blank Node identifier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Like many APIs but unlike the RDF Data model the BlankNode interface exposes an internal identifier. BlankNodes with the same identifier are mandated to be equals if the are created with the same RDFTermFactory.

      The concept of identifier has a match in many concrete syntaxes, however the usage in the API is different, as a graph may have different BNodes with the same identifier if they are created by different factories.

      The blank node identifier has been causing difficulties and been the subject to discussions. It is particularly problematic onbackend that do not expose such identifiers but which allow modifications (e.g. SPARQL backend), see also: http://mail-archives.apache.org/mod_mbox/commonsrdf-dev/201503.mbox/%3CCALvhUEXSSwO-Udj6ngdedVQuPC6n=+983UbnkYoBs2psY5kURg@mail.gmail.com%3E.

      To allow some evidence based discussion with this issue I ask proponent of exposing the blank node ID to provide some minimal code examples showing the advantage of having the ID exposed, i.e. code that could not easily be written without the BlankNode.internalIdentifier() method and the RDFTermFGactory.createBlankNode(String identifier) method.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reto Reto Gmür
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: