|
||||||||||
| 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.ReasonerComponent
org.dllearner.reasoning.OWLAPIReasoner
public class OWLAPIReasoner
Mapping to OWL API reasoner interface. The OWL API currently supports two reasoners: FaCT++ and Pellet. FaCT++ is connected using JNI and native libraries, while Pellet is a pure Java library.
| Field Summary |
|---|
| Fields inherited from class org.dllearner.core.ReasonerComponent |
|---|
logger |
| Constructor Summary | |
|---|---|
OWLAPIReasoner(Set<KnowledgeSource> sources)
|
|
| Methods inherited from class org.dllearner.core.ReasonerComponent |
|---|
changeSources, doubleRetrieval, getAtomicConceptsList, getAtomicConceptsList, getAtomicRolesList, getBooleanDatatypeMembers, getBooleanDatatypeProperties, getClassHierarchy, getDatatypeMembers, getDatatypeProperties, getDatatypePropertyHierarchy, getDomain, getDomain, getDoubleDatatypeMembers, getDoubleDatatypeProperties, getFalseDatatypeMembers, 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, getSubClasses, getSubProperties, getSubProperties, getSubsumptionReasoningTimeNs, getSuperClasses, getSuperProperties, getSuperProperties, getTimePerInstanceCheckNs, getTimePerRetrievalNs, getTimePerSubsumptionCheckNs, getTrueDatatypeMembers, getTypes, hasType, hasType, isSatisfiable, isSuperClassOf, isSuperClassOf, prepareDatatypePropertyHierarchy, prepareRoleHierarchy, prepareSubsumptionHierarchy, remainsSatisfiable, resetStatistics, setUpdated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OWLAPIReasoner(Set<KnowledgeSource> sources)
| Method Detail |
|---|
public OWLAPIReasonerConfigurator 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()
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()
throws ComponentInitException
Component
init in class ComponentComponentInitException - 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 Set<NamedClass> getNamedClasses()
BaseReasoner
public Set<ObjectProperty> getObjectProperties()
BaseReasoner
public SortedSet<DatatypeProperty> getDatatypePropertiesImpl()
public SortedSet<Individual> getIndividuals()
BaseReasoner
public ReasonerType getReasonerType()
ReasonerComponent
getReasonerType in class ReasonerComponent
public boolean isSuperClassOfImpl(Description superConcept,
Description subConcept)
public boolean hasTypeImpl(Description concept,
Individual individual)
public SortedSet<Individual> getIndividualsImpl(Description concept)
public Set<NamedClass> getTypesImpl(Individual individual)
public boolean isSatisfiableImpl()
public Description getDomainImpl(ObjectProperty objectProperty)
public Description getDomainImpl(DatatypeProperty datatypeProperty)
public Description getRangeImpl(ObjectProperty objectProperty)
public Map<Individual,SortedSet<Individual>> getPropertyMembersImpl(ObjectProperty atomicRole)
public Set<Individual> getRelatedIndividualsImpl(Individual individual,
ObjectProperty objectProperty)
public Set<Constant> getRelatedValuesImpl(Individual individual,
DatatypeProperty datatypeProperty)
public Map<Individual,SortedSet<Double>> getDoubleValues(DatatypeProperty datatypeProperty)
public Map<Individual,SortedSet<Constant>> getDatatypeMembersImpl(DatatypeProperty datatypeProperty)
public static void exportKBToOWL(File owlOutputFile,
KB kb,
URI ontologyURI)
public static void main(String[] args)
args - public SortedSet<DatatypeProperty> getBooleanDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getDoubleDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getIntDatatypePropertiesImpl()
public String getBaseURI()
BaseReasoner
public Map<String,String> getPrefixes()
BaseReasoner
public void releaseKB()
ReasonerComponent
releaseKB in class ReasonerComponentpublic List<org.semanticweb.owl.model.OWLOntology> getOWLAPIOntologies()
public Set<NamedClass> getInconsistentClassesImpl()
public Set<org.semanticweb.owl.model.OWLClass> getInconsistentOWLClasses()
public Set<Constant> getLabelImpl(Entity entity)
public boolean remainsSatisfiableImpl(Axiom axiom)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||