work on NIHVIVO-205 ontology upgrade
This commit is contained in:
parent
c13f025ed6
commit
c7fdb7d9be
1 changed files with 6 additions and 1 deletions
|
@ -103,7 +103,12 @@ public class OntologyUpdater {
|
|||
Model m = ontModelSelector.getApplicationMetadataModel();
|
||||
Query query = QueryFactory.create(sparqlQueryStr);
|
||||
QueryExecution qexec = QueryExecutionFactory.create(query, m);
|
||||
return qexec.execAsk();
|
||||
|
||||
// if the ASK query DOES have a solution (i.e. the assertions exist
|
||||
// showing that the update has already been performed), then the update
|
||||
// is NOT required.
|
||||
return !qexec.execAsk();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue