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] Loading an ontology with imports

Alexander Musidlowski musidlow at informatik.hu-berlin.de
Fri Jan 4 06:27:50 PST 2008


Hi ,

i´ve got two ontologies. I created a third ontology which imports the
first two ontologies and creates a mapping between these two.
Now i try to load programmatically the third ontology.
But then i get these warnings:

WARNING: [Local Folder Repository] The specified file must be a directory. (...\Tutorial - Protege OWL\plugins\edu.stanford.smi.protegex.owl) --LocalFolderRepository.update()INFO: Loading triplesINFO: Start processing ontology: http://dummy-ontologies.com/dummy.owl Time: Fri Jan 04 15:12:24 CET 2008
WARNING: The system cannot find the ontology http://www.owl-ontologies.com/2007/12/22/Buch.owl in any of the repositories. This import will be ignored. -- UnresolvedImportUIHandler.handleUnresolvableImport()
WARNING: [ProtegeOWLParser] Warning: Ignoring import http://www.owl-ontologies.com/2007/12/22/Buch.owl -- DefaultProtegeOWLParserLogger.logWarning()
WARNING: The system cannot find the ontology http://www.owl-ontologies.com/2007/12/22/book.owl in any of the repositories. This import will be ignored. -- UnresolvedImportUIHandler.handleUnresolvableImport()
WARNING: [ProtegeOWLParser] Warning: Ignoring import http://www.owl-ontologies.com/2007/12/22/book.owl -- DefaultProtegeOWLParserLogger.logWarning()

The ontology in the warnings are the imported ones. How do i get these
ontologies loaded? The problem is, i don´t know these ontologies (when
the program runs) before loading the third ontology. I only know in
which folder there will be. Does it suffice to specify the Local
Folder Repository? How i´m doing this?


String map = ".../Ontologien/mapping.owl";
File file = new File( map );
FileInputStream is;
try {
     is = new FileInputStream(file);
     JenaOWLModel owlModel = ProtegeOWL.createJenaOWLModelFromInputStream(is);
    }
catch (Exception e) {
         throw new CmdException("Error reading map file", e); 
    }
     

-- 
Bye
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20080104/6b4d8a2f/attachment.pgp>


More information about the protege-owl mailing list