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-discussion] manage ontology import programmatically

Thomas Russ tar at ISI.EDU
Thu Nov 13 08:28:20 PST 2008


On Nov 12, 2008, at 9:43 PM, Nwe ni Tun wrote:
>
> I want to import iswc-CP.owl into univ-SPURa.owl.
> The following code does not work.

How does it fail?

> Thanks for any hint!
>
> NNT
>
> //////////////////////////////
>
> JenaOWLModel jenaOwlModel = ProtegeOWL.createJenaOWLModelFromURI("file:///c:/ranking/integrate/univ-SPURa.owl 
> ");
                ^^^^^^^^^^^^
> ImportHelper helper = new ImportHelper(jenaOPWLModel);
                                          ^^^^^^^^^^^^^
These two are different.
>
> helper.addImport(new File("iswc-CP.owl").toURI());
> helper.importOntologies();
>
> Discover the new Windows Vista Learn more!
>
> Connect to the next generation of MSN Messenger  Get it now!
> From: Nwe ni Tun <nini.nnt at hotmail.com>
> Date: November 12, 2008 8:37:57 PM PST
> To: <protege-discussion at lists.stanford.edu>
> Subject: manage ontology import programmatically
>
>
> Hello,
>
> I want to import iswc-CP.owl into univ-SPURa.owl.
> The following code does not work.
> Thanks for any hint!
>
> NNT
>
> //////////////////////////////
>
> JenaOWLModel jenaOwlModel = ProtegeOWL.createJenaOWLModelFromURI("file:///c:/ranking/integrate/univ-SPURa.owl 
> ");
> ImportHelper helper = new ImportHelper(jenaOPWLModel);
> helper.addImport(new File("iswc-CP.owl").toURI());
> helper.importOntologies();
>
> Discover the new Windows Vista Learn more!
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03




More information about the protege-discussion mailing list