|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.core.Component
org.dllearner.core.KnowledgeSource
org.dllearner.kb.sparql.SparqlKnowledgeSource
public class SparqlKnowledgeSource
Represents the SPARQL Endpoint Component.
| Constructor Summary | |
|---|---|
SparqlKnowledgeSource()
|
|
| Method Summary | ||
|---|---|---|
|
applyConfigEntry(ConfigEntry<T> entry)
Applies a configuration option to this component. |
|
static Collection<ConfigOption<?>> |
createConfigOptions()
Specifies the configuration options for this knowledge source. |
|
void |
export(File file,
OntologyFormat format)
Export the knowledge source to the specified file in the specified format. |
|
List<Node> |
extractParallel()
|
|
String |
getCacheDir()
|
|
SparqlKnowledgeSourceConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script ConfigJavaGenerator. |
|
Manipulator |
getManipulator()
|
|
static String |
getName()
|
|
int |
getNrOfExtractedAxioms()
|
|
URL |
getOntologyFragmentURL()
|
|
org.semanticweb.owl.model.OWLOntology |
getOWLAPIOntology()
|
|
SparqlEndpoint |
getSparqlEndpoint()
|
|
SparqlQueryMaker |
getSparqlQueryMaker()
|
|
SPARQLTasks |
getSPARQLTasks()
|
|
TupleAquisitor |
getTupleAquisitor()
|
|
URL |
getURL()
|
|
void |
init()
Method to be called after the component has been configured. |
|
boolean |
isUseCache()
|
|
SparqlQuery |
sparqlQuery(String query)
|
|
String |
toDIG(URI kbURI)
Transforms this knowledge source to DIG 1.1 code according to the specification. |
|
KB |
toKB()
Transforms this knowledge source into an internal knowledge base. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SparqlKnowledgeSource()
| Method Detail |
|---|
public SparqlKnowledgeSourceConfigurator getConfigurator()
ComponentConfigJavaGenerator. The configurator
provides set and get methods for the configuration options of
a component.
getConfigurator in class Componentpublic static String getName()
public static Collection<ConfigOption<?>> createConfigOptions()
Component.createConfigOptions()
public <T> void applyConfigEntry(ConfigEntry<T> entry)
throws InvalidConfigOptionValueException
ComponentComponentManager.
T - Type of the config entry (Integer, String etc.).entry - A configuration entry.
InvalidConfigOptionValueException - This exception is thrown if the
value of the config entry is not valid. For instance, a config option
may only accept values, which are within intervals 0.1 to 0.3 or 0.5 to 0.8.
If the value is outside of those intervals, an exception is thrown. Note
that many of the common cases are already caught in the constructor of
ConfigEntry (for instance for a DoubleConfigOption you can specify
an interval for the value). This means that, as a component developer, you
often do not need to implement further validity checks.Component.getConfigurator()public void init()
Component
init in class Componentpublic List<Node> extractParallel()
public String toDIG(URI kbURI)
KnowledgeSource
toDIG in class KnowledgeSourcekbURI - The URI which is assigned to the knowledge base. The URI
is used to refer to the knowledge base in queries (DIG supports using
several knowledge bases).
public void export(File file,
OntologyFormat format)
throws OntologyFormatUnsupportedException
KnowledgeSource
export in class KnowledgeSourcefile - File to store the knowledge base.format - Format of the knowledge base, e.g. N-Triples.
OntologyFormatUnsupportedException - Thrown if the conversion
to the specified format is not supported by this knowledge source.public URL getURL()
public SparqlQuery sparqlQuery(String query)
public SparqlEndpoint getSparqlEndpoint()
public SPARQLTasks getSPARQLTasks()
public SparqlQueryMaker getSparqlQueryMaker()
public Manipulator getManipulator()
public TupleAquisitor getTupleAquisitor()
public KB toKB()
KnowledgeSource
toKB in class KnowledgeSourcepublic URL getOntologyFragmentURL()
public org.semanticweb.owl.model.OWLOntology getOWLAPIOntology()
public boolean isUseCache()
public String getCacheDir()
public int getNrOfExtractedAxioms()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||