commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [3/3] incubator-commonsrdf git commit: Jena Dataset delete by wildcard
Date Fri, 04 Nov 2016 00:50:29 GMT
Jena Dataset delete by wildcard


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/99279a13
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/99279a13
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/99279a13

Branch: refs/heads/master
Commit: 99279a1354087a8e5e49fc60cb74cc82376dd6d6
Parents: a048486
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Fri Nov 4 00:49:55 2016 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Fri Nov 4 00:49:55 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/99279a13/jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java b/jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java
index f96fc62..e7602ca 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java
@@ -110,8 +110,8 @@ class JenaDatasetImpl implements JenaDataset {
 
     @Override
     public void remove(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject,
IRI predicate, RDFTerm object) {
-        graph.delete(org.apache.jena.sparql.core.Quad.create(toJenaPattern(graphName), toJenaPattern(subject),
-                toJenaPattern(predicate), toJenaPattern(object)));
+        graph.deleteAny(toJenaPattern(graphName), toJenaPattern(subject),
+                toJenaPattern(predicate), toJenaPattern(object));
     }
 
     @Override


Mime
View raw message