|
|||||||||
| 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.FastInstanceChecker
public class FastInstanceChecker
Reasoner for fast instance checks. It works by completely dematerialising the knowledge base to speed up later reasoning requests. It then continues by only considering one model of the knowledge base (TODO: more explanation), which is neither correct nor complete, but sufficient in many cases. A big advantage of the algorithm is that it does not need even need to perform any set modifications (union, intersection, difference), so it avoids any Java object creation, which makes it extremely fast compared to standard reasoners. Meanwhile, the algorithm has been extended to also perform fast retrieval operations. However, those need write access to memory and potentially have to deal with all individuals in a knowledge base. For many knowledge bases, they should still be reasonably fast.
| Constructor Summary | |
|---|---|
FastInstanceChecker(Set<AbstractKnowledgeSource> sources)
Creates an instance of the fast instance checker. |
|
| Methods inherited from class org.dllearner.core.AbstractReasonerComponent |
|---|
changeSources, doubleRetrieval, getAssertedDefinitions, getAtomicConceptsList, getAtomicConceptsList, getAtomicRolesList, getBooleanDatatypeMembers, getBooleanDatatypeProperties, getClassHierarchy, getDatatypeMembers, getDatatypeProperties, getDatatypePropertyHierarchy, getDomain, getDomain, getDoubleDatatypeMembers, getDoubleDatatypeProperties, getFalseDatatypeMembers, getFuzzyIndividuals, getInconsistentClasses, getIndividuals, getInstanceCheckReasoningTimeNs, getIntDatatypeMembers, getIntDatatypeProperties, getLabel, getMostGeneralDatatypeProperties, getMostGeneralProperties, getMostSpecialDatatypeProperties, getMostSpecialProperties, getNrOfInstanceChecks, getNrOfMultiInstanceChecks, getNrOfMultiSubsumptionChecks, getNrOfRetrievals, getNrOfSubsumptionChecks, getNrOfSubsumptionHierarchyQueries, getObjectPropertyHierarchy, getObjectPropertyRelationships, getOverallReasoningTimeNs, getPropertyMembers, getRange, getRange, getRelatedIndividuals, getRelatedValues, getRetrievalReasoningTimeNs, getSources, getStringDatatypeMembers, getStringDatatypeProperties, getSubClasses, getSubProperties, getSubProperties, getSubsumptionReasoningTimeNs, getSuperClasses, getSuperProperties, getSuperProperties, getTimePerInstanceCheckNs, getTimePerRetrievalNs, getTimePerSubsumptionCheckNs, getTrueDatatypeMembers, getTypes, hasType, hasType, hasTypeFuzzyMembership, isEquivalentClass, isSatisfiable, isSuperClassOf, isSuperClassOf, prepareDatatypePropertyHierarchy, prepareRoleHierarchy, prepareSubsumptionHierarchy, remainsSatisfiable, resetStatistics, setUpdated, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FastInstanceChecker(Set<AbstractKnowledgeSource> sources)
sources - The knowledge sources used as input.| Method Detail |
|---|
public FastInstanceCheckerConfigurator getConfigurator()
AbstractComponent
getConfigurator in class AbstractComponentpublic 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 static String getName()
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 boolean hasTypeImpl(Description description,
Individual individual)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedException
public SortedSet<Individual> getIndividualsImpl(Description concept)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedException
public SortedSet<Individual> getIndividualsImplStandard(Description concept)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedException
public SortedSet<Individual> getIndividualsImplFast(Description description)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedExceptionpublic Set<NamedClass> getNamedClasses()
BaseReasoner
public Set<ObjectProperty> getObjectProperties()
BaseReasoner
public SortedSet<DatatypeProperty> getDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getBooleanDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getDoubleDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getIntDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getStringDatatypePropertiesImpl()
public SortedSet<Individual> getIndividuals()
BaseReasoner
public ReasonerType getReasonerType()
AbstractReasonerComponent
getReasonerType in class AbstractReasonerComponent
public boolean isSuperClassOfImpl(Description superConcept,
Description subConcept)
public static void main(String[] args)
throws ComponentInitException,
ParseException,
ReasoningMethodUnsupportedException
args - No arguments supported.
ComponentInitException - Component cannot be initialised.
ParseException - File cannot be parsed.
ReasoningMethodUnsupportedException - Reasoning method not supported.public String getBaseURI()
BaseReasoner
public Map<String,String> getPrefixes()
BaseReasoner
public Description getDomainImpl(ObjectProperty objectProperty)
public Description getDomainImpl(DatatypeProperty datatypeProperty)
public Description getRangeImpl(ObjectProperty objectProperty)
public Map<Individual,SortedSet<Individual>> getPropertyMembersImpl(ObjectProperty atomicRole)
public final SortedSet<Individual> getTrueDatatypeMembersImpl(DatatypeProperty datatypeProperty)
public final SortedSet<Individual> getFalseDatatypeMembersImpl(DatatypeProperty datatypeProperty)
public Map<Individual,SortedSet<Integer>> getIntDatatypeMembersImpl(DatatypeProperty datatypeProperty)
public Map<Individual,SortedSet<Double>> getDoubleDatatypeMembersImpl(DatatypeProperty datatypeProperty)
public Map<Individual,SortedSet<Constant>> getDatatypeMembersImpl(DatatypeProperty datatypeProperty)
public Set<Individual> getRelatedIndividualsImpl(Individual individual,
ObjectProperty objectProperty)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedException
public Set<Constant> getRelatedValuesImpl(Individual individual,
DatatypeProperty datatypeProperty)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedExceptionpublic boolean isSatisfiableImpl()
public Set<Constant> getLabelImpl(Entity entity)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedExceptionpublic void releaseKB()
AbstractReasonerComponent
releaseKB in class AbstractReasonerComponentpublic boolean remainsSatisfiableImpl(Axiom axiom)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||