com.hp.hpl.jena.rdf.model.Model are used as key in the Map but each instance in memory is different from each other. Since com.hp.hpl.jena.rdf.model.Model are loaded at many places:
- SemanticBaseListener.getBaseFromFile()
- RdfFileConnectorDelegate.getElement()
- RdfFileConnectorDelegate.initLocation()
This leads to a null IFile when calling SemanticBaseListener.getFile(). In this case links from semantic annotation can't be created. To fix this we can use an other key, for instance an identifier inside the ontology itself. An other way is to make sure to centralize and cache com.hp.hpl.jena.rdf.model.Model loading.
com.hp.hpl.jena.rdf.model.Model are used as key in the Map but each instance in memory is different from each other. Since com.hp.hpl.jena.rdf.model.Model are loaded at many places:
This leads to a null IFile when calling SemanticBaseListener.getFile(). In this case links from semantic annotation can't be created. To fix this we can use an other key, for instance an identifier inside the ontology itself. An other way is to make sure to centralize and cache com.hp.hpl.jena.rdf.model.Model loading.