NIHVIVO-3879 fixed blank node deletion root finder query
This commit is contained in:
parent
278fde61d6
commit
a205915dc2
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ public abstract class RDFServiceJena extends RDFServiceImpl implements RDFServic
|
|||
log.warn("This likely indicates a problem; excessive data may be deleted.");
|
||||
}
|
||||
|
||||
String rootFinder = "SELECT ?s WHERE { ?s ?p ?o OPTIONAL { ?ss ?pp ?s FILTER(!isBlank(?ss)) } FILTER (!bound(?ss)) }";
|
||||
String rootFinder = "SELECT ?s WHERE { ?s ?p ?o OPTIONAL { ?ss ?pp ?s } FILTER (!isBlank(?s) || !bound(?ss)) }";
|
||||
Query rootFinderQuery = QueryFactory.create(rootFinder);
|
||||
QueryExecution qe = QueryExecutionFactory.create(rootFinderQuery, blankNodeModel);
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue