public class KBFile extends AbstractKnowledgeSource implements OWLOntologyKnowledgeSource
Constructor and Description |
---|
KBFile()
Default constructor (needed for reflection in ComponentManager).
|
KBFile(org.semanticweb.owlapi.model.OWLOntology kb)
Constructor allowing you to treat an already existing OWL ontology
as a KBFile knowledge source.
|
Modifier and Type | Method and Description |
---|---|
org.semanticweb.owlapi.model.OWLOntology |
createOWLOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager)
Create an OWL Ontology associated with the specified manager.
|
String |
getBaseDir() |
String |
getFileName() |
String |
getUrl() |
void |
init()
Method to be called after the component has been configured.
|
void |
setBaseDir(String baseDir) |
void |
setFileName(String fileName) |
void |
setUrl(String url) |
String |
toString() |
isInitialized
public KBFile()
public KBFile(org.semanticweb.owlapi.model.OWLOntology kb)
kb
- A KB object.public void init() throws ComponentInitException
Component
init
in interface Component
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public org.semanticweb.owlapi.model.OWLOntology createOWLOntology(org.semanticweb.owlapi.model.OWLOntologyManager manager)
OWLOntologyKnowledgeSource
createOWLOntology
in interface OWLOntologyKnowledgeSource
manager
- The manager to associate the new ontology with.public String getBaseDir()
public void setBaseDir(String baseDir)
public String getFileName()
public void setFileName(String fileName)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann