Commit 5510370f authored by Martin's avatar Martin
Browse files

sorrounded COMODI term annotation process with try/catch

It appears, that sometimes some COMODI terms are not in the specific OntologyIndex/-Factory
parent 4e0cf12d
No related merge requests found
Showing with 6 additions and 1 deletion
+6 -1
......@@ -428,7 +428,12 @@ public class DiffJob implements Runnable {
Resource objectResource = null;
if( object.isResource() == true && (objectResource = object.asResource()).getNameSpace().equals( ChangeFactory.COMODI_NS ) ) {
log.debug("S:{} P:{} O:{}", resource.toString(), prop.getLocalName(), objectResource.toString());
addComodiTerm( resource.getURI(), prop.getLocalName(), objectResource.getLocalName() );
try {
addComodiTerm( resource.getURI(), prop.getLocalName(), objectResource.getLocalName() );
}
catch(Exception e) {
log.error(MessageFormat.format("Error while annotation DiffNode {0} with COMODI term {1}", resource, objectResource) );
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment