Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-65

Provide add and remove methods with nodes as paramaters in DatasetGraph

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • Jena 2.11.0
    • ARQ

    Description

      From an instance of DatasetGraphTDB for example, it is possible to add or to remove quads with a Quad as parameter. However if we have the set of nodes associated to a Quad (g, s, p, o), it is not possible to directly add or delete a quad by using these nodes. In order to do that we have to create a new Quad with the nodes. I think it would be nice to provide an add(Node g, Node s, Node p, Node o) and a delete(Node g, Node s, Node p, Node o). First, to be consistent because you already provide it for contains(Node g, Node s, Node p, Node o), find(Node g, Node s, Node p, Node o) and deleteAny(Node g, Node s, Node p, Node o). But also because it offers the possibility to avoid to create Quads for people who provide their own Quadruple abstraction (which uses Jena Nodes).

      Attachments

        1. arq-add-delete.patch
          4 kB
          Laurent Pellegrino

        Activity

          People

            andy Andy Seaborne
            lpellegr Laurent Pellegrino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: