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] Importing ontology from a locally stored owl file

Ralf Weinand weinanr at cs.tu-berlin.de
Fri Jan 18 04:52:09 PST 2008


Hi Thomas,

maybe you can also answer the question I postet about a week ago.
https://mailman.stanford.edu/pipermail/protege-owl/2008-January/005367.html
I didn´t get any reply yet. Don´t know if noboady has an answer to this problem,
or if my question got lost.

Any comments are very welcome!

Ralf


On Jan 18, 2008 2:29 AM, Thomas Russ <tar at isi.edu> wrote:
>
> On Jan 16, 2008, at 10:01 PM, Surabhi Agarwal wrote:
>
> > I am trying to import an owl ontology stored locally from a java
> > program.
> >
> > ProtegeOWLParser.addImport(owlModel, new
> > URI("file:///home/surabhi/rep/textmining/buzz/trunk/resources/data/camera.owl
> > "),
> > "camera");
> >
> > Its working fine but when I give relative path in import
> > ProtegeOWLParser.addImport(owlModel, new
> > URI("file:///../data/camera.owl"),"camera");
> >
> > It says owl ontology not found. How can I give relative path to import
> > locally
> > stored ontology?
>
> I always have trouble figuring out the correct URI syntax for relative
> paths is, so what I usually do is create the appropriate File object
> and use the File.toURI() method to get the URI.  That also lets be
> easily check for the file's existence first.
>
> _______________________________________________
> 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