Re: Clearing and reloading ontology and its imports

2018-04-08 Thread Dave Reynolds
On 07/04/18 10:49, Martynas Jusevičius wrote: Sorry for the noise, it looks like the listImportedOntologyURIs() was a red herring -- the submodel count actually comes from InfModel which includes the schema submodels. But I was able to dig a little further, and observed after the code I have sh

Re: Clearing and reloading ontology and its imports

2018-04-07 Thread Martynas Jusevičius
Sorry for the noise, it looks like the listImportedOntologyURIs() was a red herring -- the submodel count actually comes from InfModel which includes the schema submodels. But I was able to dig a little further, and observed after the code I have shown is executed, there are inconsistencies in mo

Re: Clearing and reloading ontology and its imports

2018-04-06 Thread Martynas Jusevičius
I guess dynamic imports is what I need. But will they get triggered if I remove and then re-add the whole Model (as shown in my example), rather than statements? I could probably removeAll() statements from it instead of removing it from cache. On Fri, Apr 6, 2018 at 1:59 PM, Martynas Jusevičius

Clearing and reloading ontology and its imports

2018-04-06 Thread Martynas Jusevičius
Hi, we have an ontology editor that stores ontologies and their terms in a triplestore. On the other end, they are being loaded by OntDocumentManager. The question is: what is the proper way to clear and reload an ontology and its imports in OntDocumentManager? Because, for example, a user could