jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/3] jena git commit: Make add/delete final: they route the operations to addToNamedGraph &c.
Date Wed, 20 Jul 2016 10:07:36 GMT
Make add/delete final: they route the operations to addToNamedGraph &c.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/f30d2d02
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/f30d2d02
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/f30d2d02

Branch: refs/heads/master
Commit: f30d2d021ce217c94835bc9100c5e04b28d77661
Parents: 0247b6e
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Jul 19 11:43:28 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Wed Jul 20 11:07:20 2016 +0100

----------------------------------------------------------------------
 .../jena/sparql/core/DatasetGraphTriplesQuads.java | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/f30d2d02/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphTriplesQuads.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphTriplesQuads.java
b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphTriplesQuads.java
index cfe836f..756adff 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphTriplesQuads.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphTriplesQuads.java
@@ -37,7 +37,7 @@ public abstract class DatasetGraphTriplesQuads extends DatasetGraphBaseFind
     }
 
     @Override
-    public void add(Node g, Node s, Node p, Node o) {
+    final public void add(Node g, Node s, Node p, Node o) {
         if ( Quad.isDefaultGraph(g) )
             addToDftGraph(s, p, o) ;
         else
@@ -45,7 +45,7 @@ public abstract class DatasetGraphTriplesQuads extends DatasetGraphBaseFind
     }
 
     @Override
-    public void delete(Node g, Node s, Node p, Node o) {
+    final public void delete(Node g, Node s, Node p, Node o) {
         if ( Quad.isDefaultGraph(g) )
             deleteFromDftGraph(s, p, o) ;
         else
@@ -57,8 +57,19 @@ public abstract class DatasetGraphTriplesQuads extends DatasetGraphBaseFind
     protected abstract void deleteFromDftGraph(Node s, Node p, Node o) ;
     protected abstract void deleteFromNamedGraph(Node g, Node s, Node p, Node o) ;
     
+//    // Ensure we loop back here
+//    @Override
+//    public Graph getDefaultGraph() {
+//        return GraphView.createDefaultGraph(this) ;
+//    }
+//
+//    @Override
+//    public Graph getGraph(Node graphNode) {
+//        return GraphView.createNamedGraph(this, graphNode) ;
+//    }
+
     // Default implementations - copy based.
-    
+      
     @Override
     public void setDefaultGraph(Graph graph) { 
         GraphUtil.addInto(getDefaultGraph(), graph) ;


Mime
View raw message