Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Done
-
None
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).