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] owldatatypeproperty (Timothy Redmond)

Fahd Amjad fahd.amjad at gmail.com
Thu Jan 26 06:39:00 PST 2012


Hi  Timothy,

*Thanks for your previous reply. You had mentioned that i should save the
ontology after populating it. I cannot load the ontology any other way
because then i get all sorts **or errors. Following are the loading saving
steps and the corresponding errors.* *The this errors comes when ever i try
to save the ontology*

*LOADING*
*
Reader inputFileForOntologyCore = new InputStreamReader(new
FileInputStream("C:/Users/saturn/Desktop/OntologyTESTFolder/OntologyCore.owl"));
*JenaOWLModel loadedOntologyCore = ProtegeOWL.createJenaOWLModel(
);
*RepositoryManager manager = loadedOntologyCore.getRepositoryManager();*
File systemontologyFileFolder= new File("C:\\Program
Files\\Protege_3.4.4\\plugins\\edu.stanford.smi.protegex.owl");
*LocalFolderRepository systemRepository = new
LocalFolderRepository(systemontologyFileFolder);*
manager.addGlobalRepository(systemRepository);*
loadedOntologyCore.load(inputFileForOntologyCore, FileUtils.langXMLAbbrev);*

*SAVING*

URI myUri= new
URI("file:///C:/Users/saturn/Desktop/OntologyTESTFolder/loadedOntologyCore");
ArrayList error = new ArrayList();
loadedOntologyCore.save(myUri, FileUtils.langXMLAbbrev, error);

*Error*
Saving import http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owlto
C:\Program
Files\Protege_3.4.4\plugins\edu.stanford.smi.protegex.owl\sqwrl.owl
SEVERE: Failed to save file
file:///C:/Users/saturn/Desktop/OntologyTESTFolder/loadedOntologyCore using
Protege2Jena. -- java.io.FileNotFoundException: C:\Program
Files\Protege_3.4.4\plugins\edu.stanford.smi.protegex.owl\sqwrl.owl (Accès
refusé)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at
edu.stanford.smi.protegex.owl.repository.impl.AbstractLocalRepository.getOutputStream(Unknown
Source)
at
edu.stanford.smi.protegex.owl.jena.protege2jena.Protege2Jena.saveAll(Unknown
Source)
at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.save(Unknown Source)
at
fahd.amjad.ide.importing.ontology.populatinginstances.ImportingOwlOntology.main(ImportingOwlOntology.java:122)


-- 
Fahd Amjad
LGIPM Metz
Université Paul Verlaine
Tél: 00(33)-0611811038
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20120126/cae71c51/attachment.html>


More information about the protege-discussion mailing list