|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.AbstractComponent
org.dllearner.core.AbstractReasonerComponent
org.dllearner.reasoning.DIGReasoner
public class DIGReasoner
DIG 1.1 implementation of the reasoner interface.
| Field Summary |
|---|
| Fields inherited from class org.dllearner.core.AbstractReasonerComponent |
|---|
logger |
| Constructor Summary | |
|---|---|
DIGReasoner(Set<AbstractKnowledgeSource> sources)
|
|
| Method Summary | ||
|---|---|---|
|
applyConfigEntry(ConfigEntry<T> entry)
Applies a configuration option to this component. |
|
static Collection<ConfigOption<?>> |
createConfigOptions()
|
|
String |
getBaseURI()
Returns the base URI of the knowledge base. |
|
DIGReasonerConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}. |
|
String |
getIdentifier()
|
|
SortedSet<Individual> |
getIndividuals()
Gets all individuals in the knowledge base, e.g. |
|
SortedSet<Individual> |
getIndividualsImpl(Description concept)
|
|
static String |
getName()
|
|
Set<NamedClass> |
getNamedClasses()
Constructs a role hierarchy using DIG queries. |
|
Set<ObjectProperty> |
getObjectProperties()
Gets all object properties in the knowledge base, e.g. hasChild, isCapitalOf, hasEngine. |
|
Map<String,String> |
getPrefixes()
Returns the prefixes used in the knowledge base, e.g. foaf for foaf: |
|
Map<Individual,SortedSet<Individual>> |
getPropertyMembersImpl(ObjectProperty atomicRole)
|
|
ReasonerType |
getReasonerType()
Gets the type of the underlying reasoner. |
|
URL |
getReasonerURL()
|
|
Set<NamedClass> |
getTypesImpl(Individual individual)
|
|
boolean |
hasTypeImpl(Description concept,
Individual individual)
|
|
SortedSet<Individual> |
hasTypeImpl(Description concept,
Set<Individual> individuals)
|
|
void |
init()
Method to be called after the component has been configured. |
|
boolean |
isSatisfiableImpl()
|
|
boolean |
isSuperClassOfImpl(Description superConcept,
Description subConcept)
|
|
Set<Description> |
isSuperClassOfImpl(Set<Description> superConcepts,
Description subConcept)
|
|
void |
releaseKB()
Call this method to release the knowledge base. |
|
void |
saveOntology(File file,
OntologyFormat format)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DIGReasoner(Set<AbstractKnowledgeSource> sources)
| Method Detail |
|---|
public DIGReasonerConfigurator getConfigurator()
AbstractComponent
getConfigurator in class AbstractComponent
public void init()
throws ComponentInitException
Component
ComponentInitException - This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
rethrow occuring exception as ComponentInitException and
giving an error message as well as the actualy exception by
using the constructor ComponentInitException.ComponentInitException(String, Throwable).public static String getName()
public static Collection<ConfigOption<?>> createConfigOptions()
public <T> void applyConfigEntry(ConfigEntry<T> entry)
throws InvalidConfigOptionValueException
AbstractComponentComponentManager.
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.AbstractComponent.getConfigurator()public Set<NamedClass> getNamedClasses()
public Set<ObjectProperty> getObjectProperties()
BaseReasoner
public SortedSet<Individual> getIndividuals()
BaseReasoner
public ReasonerType getReasonerType()
AbstractReasonerComponent
getReasonerType in class AbstractReasonerComponent
public boolean isSuperClassOfImpl(Description superConcept,
Description subConcept)
public Set<Description> isSuperClassOfImpl(Set<Description> superConcepts,
Description subConcept)
public boolean hasTypeImpl(Description concept,
Individual individual)
public SortedSet<Individual> hasTypeImpl(Description concept,
Set<Individual> individuals)
public SortedSet<Individual> getIndividualsImpl(Description concept)
public Set<NamedClass> getTypesImpl(Individual individual)
public Map<Individual,SortedSet<Individual>> getPropertyMembersImpl(ObjectProperty atomicRole)
public boolean isSatisfiableImpl()
public String getIdentifier()
public void releaseKB()
AbstractReasonerComponent
releaseKB in class AbstractReasonerComponent
public void saveOntology(File file,
OntologyFormat format)
public URL getReasonerURL()
public String getBaseURI()
BaseReasoner
public Map<String,String> getPrefixes()
BaseReasoner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||