Skip to content

Problem with SemanticBaseListener.MODEL_TO_IFILE #9

@ylussaud

Description

@ylussaud

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions