public class OWLFile extends AbstractKnowledgeSource implements OWLOntologyKnowledgeSource
Constructor and Description |
---|
OWLFile() |
OWLFile(String filename) |
OWLFile(URL url) |
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() |
List<String> |
getDefaultGraphURIs() |
String |
getFileName() |
List<String> |
getNamedGraphURIs() |
org.apache.jena.ontology.OntModelSpec |
getReasoning() |
String |
getReasoningString() |
String |
getSparql() |
URL |
getUrl() |
URL |
getURL() |
void |
init()
Method to be called after the component has been configured.
|
void |
setBaseDir(String baseDir) |
void |
setDefaultGraphURIs(List<String> defaultGraphURIs) |
void |
setFileName(String fileName) |
void |
setNamedGraphURIs(List<String> namedGraphURIs) |
void |
setReasoning(boolean reasoning) |
void |
setReasoning(org.apache.jena.ontology.OntModelSpec reasoning) |
void |
setReasoning(String reasoning) |
void |
setReasoningString(String reasoningString) |
void |
setSparql(String sparql) |
void |
setSparql(String sparql,
boolean autoQuote) |
void |
setUrl(URL url) |
void |
setURL(URL url) |
isInitialized
public OWLFile()
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)
public List<String> getDefaultGraphURIs()
public void setDefaultGraphURIs(List<String> defaultGraphURIs)
public List<String> getNamedGraphURIs()
public void setNamedGraphURIs(List<String> namedGraphURIs)
public void setReasoning(String reasoning)
public void setReasoning(boolean reasoning)
public void setReasoning(org.apache.jena.ontology.OntModelSpec reasoning)
public org.apache.jena.ontology.OntModelSpec getReasoning()
public String getReasoningString()
public void setReasoningString(String reasoningString)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann