Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with SemanticBaseListener.MODEL_TO_IFILE #9

Open
ylussaud opened this issue Nov 3, 2016 · 0 comments
Open

Problem with SemanticBaseListener.MODEL_TO_IFILE #9

ylussaud opened this issue Nov 3, 2016 · 0 comments

Comments

@ylussaud
Copy link
Contributor

ylussaud commented Nov 3, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant