work on NIHVIVO-205 ontology upgrade

This commit is contained in:
bjl23 2010-03-30 20:54:36 +00:00
parent c13f025ed6
commit c7fdb7d9be

View file

@ -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();
}
/**