From: <hee...@us...> - 2008-06-10 11:16:44
|
Revision: 949 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=949&view=rev Author: heeroyuy Date: 2008-06-10 04:16:42 -0700 (Tue, 10 Jun 2008) Log Message: ----------- -started new knowledge source to deliver the reasoner an OWLOntology directly Added Paths: ----------- trunk/src/dl-learner/org/dllearner/kb/OWLAPIOntology.java Added: trunk/src/dl-learner/org/dllearner/kb/OWLAPIOntology.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/OWLAPIOntology.java (rev 0) +++ trunk/src/dl-learner/org/dllearner/kb/OWLAPIOntology.java 2008-06-10 11:16:42 UTC (rev 949) @@ -0,0 +1,52 @@ +package org.dllearner.kb; + +import java.io.File; +import java.net.URI; + +import org.dllearner.core.KnowledgeSource; +import org.dllearner.core.OntologyFormat; +import org.dllearner.core.config.ConfigEntry; +import org.dllearner.core.config.InvalidConfigOptionValueException; +import org.dllearner.core.owl.KB; + +import org.semanticweb.owl.model.OWLOntology; + +public class OWLAPIOntology extends KnowledgeSource { + + private OWLOntology ontology; + + public OWLAPIOntology(OWLOntology onto) + { + this.ontology = onto; + } + + public <T> void applyConfigEntry(ConfigEntry<T> entry) throws InvalidConfigOptionValueException + { + + } + + public OWLOntology getOWLOntolgy() + { + return ontology; + } + + public KB toKB() + { + throw new Error("OWL -> KB conversion not implemented yet."); + } + + public void init() + { + + } + + public void export(File file, OntologyFormat format) + { + + } + + public String toDIG(URI kbURI) + { + return null; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |