public class SparqlSimpleExtractor extends AbstractKnowledgeSource implements OWLOntologyKnowledgeSource
Constructor and Description |
---|
SparqlSimpleExtractor() |
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.
|
Set<String> |
difference(Set<String> alreadyQueriedIndividuals,
org.apache.jena.ontology.OntModel model) |
String |
getAboxfilter() |
String |
getDefaultGraphURI() |
String |
getEndpointURL() |
List<String> |
getInstances() |
org.apache.jena.rdf.model.Model |
getModel() |
List<String> |
getOntologySchemaUrls() |
int |
getRecursionDepth() |
String |
getSparqlQuery() |
String |
getTboxfilter() |
void |
init()
Method to be called after the component has been configured.
|
static void |
main(String[] args) |
void |
setAboxfilter(String aboxfilter) |
void |
setDefaultGraphURI(String defaultGraphURI) |
void |
setEndpointURL(String endpointURL) |
void |
setInstances(List<String> instances) |
void |
setModel(org.apache.jena.ontology.OntModel model) |
void |
setOntologySchemaUrls(List<String> ontologySchemaUrls) |
void |
setRecursionDepth(int recursionDepth) |
void |
setSparqlQuery(String sparqlQuery) |
void |
setTboxfilter(String tboxfilter) |
isInitialized
public SparqlSimpleExtractor()
public static void main(String[] args) throws ComponentInitException
ComponentInitException
public Set<String> difference(Set<String> alreadyQueriedIndividuals, org.apache.jena.ontology.OntModel model)
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 String getEndpointURL()
public void setEndpointURL(String endpointURL)
public String getDefaultGraphURI()
public void setDefaultGraphURI(String defaultGraphURI)
public org.apache.jena.rdf.model.Model getModel()
public void setModel(org.apache.jena.ontology.OntModel model)
public String getAboxfilter()
public void setAboxfilter(String aboxfilter)
public List<String> getInstances()
public void setInstances(List<String> instances)
instances
- the instances to setpublic int getRecursionDepth()
public void setRecursionDepth(int recursionDepth)
recursionDepth
- the recursionDepth to setpublic List<String> getOntologySchemaUrls()
public void setOntologySchemaUrls(List<String> ontologySchemaUrls)
public String getTboxfilter()
public void setTboxfilter(String tboxfilter)
public String getSparqlQuery()
public void setSparqlQuery(String sparqlQuery)
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. DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann