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] Question for Protege-OWL API

Thomas Russ tar at ISI.EDU
Fri Apr 2 11:40:51 PDT 2010


On Apr 2, 2010, at 9:32 AM, Rita Marnau wrote:

> Hi,
>
> I am developing a Protege tab plugin. Here for I create a new owl  
> model, which imports the actual project owl model.
> I try to make the import with the ImportHelper. But to use the  
> addImport method, I have to know the uri of the model I want to  
> import. How can I get the uri of the current project model?
>
> Here is an example code:
>
>  private OWLModel createMetaVerificationOWLModel(OWLModel  
> projectOwlModel){
>        OWLModel metaModel = null;
>        try {
>            metaModel = ProtegeOWL.createJenaOWLModel();   //the new  
> model
>            ImportHelper importHelper = new ImportHelper(metaModel);
>            String uriOfProjectOwlModel = ?????   // the uri of the  
> project owl model
>             importHelper.addImport(uriOfProjectOwlModel);
>        } catch (OntologyLoadException e) { ..}
>        return metaModel;
>    }

OWLModel.getDefaultOWLOntology().getURI()





More information about the protege-owl mailing list