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?

Timothy Redmond tredmond at stanford.edu
Wed Mar 18 11:12:38 PDT 2009


I totally agree and it is done.

-Timothy


On Mar 18, 2009, at 10:08 AM, Thomas Russ wrote:

>
> 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?
>
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03




More information about the protege-owl mailing list