mmisw / mmiorr

Unmaintained old MMI ORR system (v2) -- New development at https://github.com/mmisw/orr
2 stars 1 forks source link

incorrect handling when multiple ontologies in OntModel #356

Closed carueda closed 9 years ago

carueda commented 9 years ago

This has actually been a long standing issue. There are places in the code where the first Ontology resource found in an OntModel is taken as the associated ontology, but this could be any of the other Ontology resources referenced by the model, for example via import.

This issue is related with #354 , where part of the issue was solved (thus allowing the registration iself to complete) but stills the contents of the registered ontology has wrong associations.

The task here is to review and fix this whole handling (in particular, in calls to JenaUtil2.getOntology(OntModel) and replace them with retrieval of the Ontology for the concrete associated URI.