From: <ku...@us...> - 2008-04-17 06:24:14
|
Revision: 796 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=796&view=rev Author: kurzum Date: 2008-04-16 23:24:07 -0700 (Wed, 16 Apr 2008) Log Message: ----------- small fix changed: new OWLXMLOntologyFormat() to new RDFXMLOntologyFormat() submitted bug to owlapi: http://sourceforge.net/tracker/index.php?func=detail&aid=1944634&group_id=90989&atid=595534 Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/utilities/CloseOntology.java trunk/src/dl-learner/org/dllearner/utilities/OntologyCloserOWLAPI.java Modified: trunk/src/dl-learner/org/dllearner/utilities/CloseOntology.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/CloseOntology.java 2008-04-17 06:19:33 UTC (rev 795) +++ trunk/src/dl-learner/org/dllearner/utilities/CloseOntology.java 2008-04-17 06:24:07 UTC (rev 796) @@ -25,9 +25,10 @@ * simply the path to the owl ontology "examples/test.owl" */ public static void main(String[] args) { - // String ontopath="examples/krkworking/test.owl"; + String ontopath=""; + //ontopath="examples/carcinogenesis/carcinogenesis.owl"; // inputURI - String ontopath = args[0]; + //ontopath = args[0]; File file = new File(ontopath); URI inputURI = file.toURI(); Modified: trunk/src/dl-learner/org/dllearner/utilities/OntologyCloserOWLAPI.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/OntologyCloserOWLAPI.java 2008-04-17 06:19:33 UTC (rev 795) +++ trunk/src/dl-learner/org/dllearner/utilities/OntologyCloserOWLAPI.java 2008-04-17 06:24:07 UTC (rev 796) @@ -16,6 +16,7 @@ import org.dllearner.reasoning.OWLAPIReasoner; import org.semanticweb.owl.apibinding.OWLManager; import org.semanticweb.owl.io.OWLXMLOntologyFormat; +import org.semanticweb.owl.io.RDFXMLOntologyFormat; import org.semanticweb.owl.model.AddAxiom; import org.semanticweb.owl.model.OWLAxiom; import org.semanticweb.owl.model.OWLDataFactory; @@ -210,7 +211,7 @@ public void writeOWLFile(URI filename) { try { - manager.saveOntology(this.onto, new OWLXMLOntologyFormat(), + manager.saveOntology(this.onto, new RDFXMLOntologyFormat(), filename); } catch (Exception e) { e.printStackTrace(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |