Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Is there a way to add/remove instances to/from imported ontologies in Protege 3.x?

Thomas Russ tar at ISI.EDU
Wed Mar 18 10:08:45 PDT 2009


On Mar 18, 2009, at 8:18 AM, Timothy Redmond wrote:

> BTW - if you are trying to do this programatically then here is the
> code snippet:
>
>         OWLModel owlModel = ont.getOWLModel();
>         OWLOntology ont = ...;
>
>         if (!ont.equals(OWLUtil.getActiveOntology(owlModel))) {
>             TripleStoreModel tsm = owlModel.getTripleStoreModel();
>             TripleStore tripleStore = tsm.getHomeTripleStore(ont);
>             TripleStoreUtil.switchTripleStore(owlModel, tripleStore);
>         }

Could we perhaps get this snipped also added to the OWLUtil class,  
perhaps with the name setActiveOntology?





More information about the protege-owl mailing list