minor improvement related to NIHVIVO-393
This commit is contained in:
parent
b451ccc184
commit
eafbc664c2
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,8 @@ import com.hp.hpl.jena.rdf.model.Statement;
|
||||||
import com.hp.hpl.jena.rdf.model.StmtIterator;
|
import com.hp.hpl.jena.rdf.model.StmtIterator;
|
||||||
import com.hp.hpl.jena.shared.Lock;
|
import com.hp.hpl.jena.shared.Lock;
|
||||||
|
|
||||||
|
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs knowledge base updates to the tbox to align with a new ontology version
|
* Performs knowledge base updates to the tbox to align with a new ontology version
|
||||||
*
|
*
|
||||||
|
@ -105,6 +107,12 @@ public class TBoxUpdater {
|
||||||
Property predicate = stmt.getPredicate();
|
Property predicate = stmt.getPredicate();
|
||||||
RDFNode oldObject = stmt.getObject();
|
RDFNode oldObject = stmt.getObject();
|
||||||
|
|
||||||
|
if (VitroVocabulary.TAB_AUTOLINKEDTOTAB.equals(predicate.getURI())) {
|
||||||
|
continue;
|
||||||
|
// the tab autolinks are not like the other annotations
|
||||||
|
// and should never be updated automatically
|
||||||
|
}
|
||||||
|
|
||||||
NodeIterator newObjects = newTboxAnnotationsModel.listObjectsOfProperty(subject, predicate);
|
NodeIterator newObjects = newTboxAnnotationsModel.listObjectsOfProperty(subject, predicate);
|
||||||
|
|
||||||
if ((newObjects == null) || (!newObjects.hasNext()) ) {
|
if ((newObjects == null) || (!newObjects.hasNext()) ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue