commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject commons-rdf git commit: COMMONSRDF-51: Avoid deleting directly from Quad
Date Thu, 26 Jan 2017 14:38:33 GMT
Repository: commons-rdf
Updated Branches:
  refs/heads/COMMONSRDF-51-langtag-lcase 3cf271162 -> f8745ef5f


COMMONSRDF-51: Avoid deleting directly from Quad

.. so that langtags are compared case insensitrive


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

Branch: refs/heads/COMMONSRDF-51-langtag-lcase
Commit: f8745ef5f1e8cb2b392f5dc88938a65980a72170
Parents: 3cf2711
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Thu Jan 26 14:38:11 2017 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Thu Jan 26 14:38:11 2017 +0000

----------------------------------------------------------------------
 .../org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/f8745ef5/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 9e4eac2..a5f4e36 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
@@ -117,7 +117,12 @@ class JenaDatasetImpl implements JenaDataset {
 
     @Override
     public void remove(final Quad quad) {
-        graph.delete(factory.asJenaQuad(quad));
+        graph.deleteAny(
+                toJenaPattern(quad.getGraphName()),
+                toJenaPattern(quad.getSubject()),
+                toJenaPattern(quad.getPredicate()),
+                toJenaPattern(quad.getObject()));
+//        graph.delete(factory.asJenaQuad(quad));
     }
 
     @Override


Mime
View raw message