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] protege owl and webservices

Thomas Russ tar at
Tue Jul 13 09:37:19 PDT 2010

On Jul 13, 2010, at 5:07 AM, tmg at wrote:

> Dear all,
> I have a library to work with owl projects. I have functions to open,
> write and save owl projects. Everything goes fine if I just use this
> library in a JAVA Class. But now I'm making a web service to give my
> library functions to the "world" and I'm having problems when I want  
> to
> open an OWL File...
> my code is:
> File file = new File("C:/Program
> Files/Protege_3.4.4/examples/collaborativePizza/ 
> collaborativePizza.owl");
> try {
>    inputStream = new FileInputStream(file);
>    owlModel =  
> ProtegeOWL.createJenaOWLModelFromInputStream(inputStream); <--
>    OWLOntology ow = owlModel.getDefaultOWLOntology();
>    OntologyURI = ow.getURI().toString();
> }...
> the code line with "<--" it's the line where it stops running... and I
> can't open the owl file...
> Can it be a problem of the associated jar file?

Does your web service environment set up the classpath properly with  
all of the required jar files for Protege OWL?

Are there any errors in the web service log file?

More information about the protege-owl mailing list