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] createJenaOWLModelFromInputStream

Oscar Pereira oscar at ieeta.pt
Fri Apr 13 07:43:09 PDT 2007


Hi,

 

I have created a simple OWL ontology in Protégé 3.2.1.

 

Now I am trying to load it using the OWL API

 

File  f =  new File( "D:/oscar/projectos/protege/AT.owl");

FileInputStream fin = new FileInputStream(f);

OWLModel om = ProtegeOWL.createJenaOWLModelFromInputStream(fin);

 

I get the following message:

 

INFO: Loading triples

SEVERE: Exception caught -- java.net.ConnectException: Connection timed out:
connect

      at java.net.PlainSocketImpl.socketConnect(Native Method)

      at java.net.PlainSocketImpl.doConnect(Unknown Source)

      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

      at java.net.PlainSocketImpl.connect(Unknown Source)

      at java.net.Socket.connect(Unknown Source)

      at java.net.Socket.connect(Unknown Source)

      at sun.net.NetworkClient.doConnect(Unknown Source)

      at sun.net.www.http.HttpClient.openServer(Unknown Source)

      at sun.net.www.http.HttpClient.openServer(Unknown Source)

      at sun.net.www.http.HttpClient.<init>(Unknown Source)

      at sun.net.www.http.HttpClient.New(Unknown Source)

      at sun.net.www.http.HttpClient.New(Unknown Source)

      at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)

      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
Source)

      at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.getInputStream(Un
known Source)

      at
edu.stanford.smi.protegex.owl.repository.impl.HTTPRepository.update(Unknown
Source)

      at
edu.stanford.smi.protegex.owl.repository.impl.HTTPRepository.<init>(Unknown
Source)

      at
edu.stanford.smi.protegex.owl.repository.RepositoryManager.getRepository(Unk
nown Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.getRepository(Unk
nown Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.runImport(Unknown
Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.processImports(Un
known Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriples(Unkno
wn Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
Source)

      at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
Source)

      at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.load(Unknown
Source)

      at
edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromInputStream(U
nknown Source)

      at
ontolgy.clsCreateAnatomyOntology.readIt(clsCreateAnatomyOntology.java:114)

      at
ontolgy.clsCreateAnatomyOntology.main(clsCreateAnatomyOntology.java:104)

 

 

 

Can anyone help me.

 

Thank you.

 

__________________________________

 

Óscar Pereira

__________________________________

   

  IEETA - Universidade de Aveiro

               3810-193 Aveiro, Portugal

  Tel. + 351 234 370 500, ext: 24129

___________________________________

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20070413/654ebcb9/attachment.html>


More information about the protege-owl mailing list