Smalyshev has uploaded a new change for review. https://gerrit.wikimedia.org/r/255915
Change subject: Fix deleting by using MINUS instead of FILTER NOT EXISTS ...................................................................... Fix deleting by using MINUS instead of FILTER NOT EXISTS Change-Id: Ia331ab9a6345ff80977c16037c0983cc802f724b See: https://jira.blazegraph.com/browse/BLZG-1643 Bug: T116622 --- M tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.multiSync.sparql M tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.sync.sparql 2 files changed, 6 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/rdf refs/changes/15/255915/1 diff --git a/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.multiSync.sparql b/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.multiSync.sparql index 192a5d5..3d8bbf8 100644 --- a/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.multiSync.sparql +++ b/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.multiSync.sparql @@ -10,7 +10,7 @@ ?s ?p ?o . # This construct is constantly reused throughout the updates. Its job is to not delete statements # that are still in use. - FILTER NOT EXISTS { + MINUS { VALUES ( ?s ?p ?o ) { %aboutStatements% } @@ -27,7 +27,7 @@ ?entity ?statementPred ?s . FILTER( STRSTARTS(STR(?s), "%uris.statement%") ) . ?s ?p ?o . - FILTER NOT EXISTS { + MINUS { VALUES ( ?s ?p ?o ) { %statementStatements% } @@ -42,7 +42,7 @@ %entityList% } ?entity ?p ?o . - FILTER NOT EXISTS { + MINUS { VALUES ( ?entity ?p ?o ) { %entityStatements% } diff --git a/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.sync.sparql b/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.sync.sparql index 77010d1..701b2e4 100644 --- a/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.sync.sparql +++ b/tools/src/main/java/org/wikidata/query/rdf/tool/rdf/RdfRepository.sync.sparql @@ -7,7 +7,7 @@ ?s ?p ?o . # This construct is constantly reused throughout the updates. Its job is to not delete statements # that are still in use. - FILTER NOT EXISTS { + MINUS { VALUES ( ?s ?p ?o ) { %aboutStatements% } @@ -21,7 +21,7 @@ %entity:id% ?statementPred ?s . FILTER( STRSTARTS(STR(?s), "%uris.statement%") ) . ?s ?p ?o . - FILTER NOT EXISTS { + MINUS { VALUES ( ?s ?p ?o ) { %statementStatements% } @@ -33,7 +33,7 @@ } WHERE { %entity:id% ?p ?o . - FILTER NOT EXISTS { + MINUS { VALUES ( ?s ?p ?o ) { %entityStatements% } -- To view, visit https://gerrit.wikimedia.org/r/255915 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia331ab9a6345ff80977c16037c0983cc802f724b Gerrit-PatchSet: 1 Gerrit-Project: wikidata/query/rdf Gerrit-Branch: master Gerrit-Owner: Smalyshev <smalys...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits