Hey all, I'm reading an ontology file into OntModel, and it includes imports which are processed. It's all fine when I'm operating on the OntModel level. However I need to pass a certain Resource to the SPIN API, and the statements about it are both in the base model and in the imported one. If I'm simply passing that Resource retrieved from the OntModel, SPIN throws an exception and won't build a Query out of it. I think it's because it is operating on the Model level and does not see the imports.
Am I possibly right? In that case, what is to be done in such situation? Should I just manually add the imported Model before passing Resource to SPIN? Thanks. Martynas graphity.org
