|
|||||||||
| 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.OWLAPIReasoner
public class OWLAPIReasoner
Mapping to OWL API reasoner interface. The OWL API currently supports three reasoners: FaCT++, HermiT and Pellet. FaCT++ is connected using JNI and native libraries, while HermiT and Pellet are pure Java libraries.
| Field Summary |
|---|
| Fields inherited from class org.dllearner.core.AbstractReasonerComponent |
|---|
logger |
| Constructor Summary | |
|---|---|
OWLAPIReasoner(Set<AbstractKnowledgeSource> sources)
|
|
| Method Summary | ||
|---|---|---|
|
applyConfigEntry(ConfigEntry<T> entry)
Applies a configuration option to this component. |
|
static Collection<ConfigOption<?>> |
createConfigOptions()
|
|
static void |
exportKBToOWL(File owlOutputFile,
KB kb,
org.semanticweb.owlapi.model.IRI ontologyIRI)
|
|
String |
getBaseURI()
Returns the base URI of the knowledge base. |
|
SortedSet<DatatypeProperty> |
getBooleanDatatypePropertiesImpl()
|
|
OWLAPIReasonerConfigurator |
getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}. |
|
Map<Individual,SortedSet<Constant>> |
getDatatypeMembersImpl(DatatypeProperty datatypeProperty)
|
|
SortedSet<DatatypeProperty> |
getDatatypePropertiesImpl()
|
|
Description |
getDomainImpl(DatatypeProperty datatypeProperty)
|
|
Description |
getDomainImpl(ObjectProperty objectProperty)
|
|
SortedSet<DatatypeProperty> |
getDoubleDatatypePropertiesImpl()
|
|
Map<Individual,SortedSet<Double>> |
getDoubleValues(DatatypeProperty datatypeProperty)
|
|
Set<NamedClass> |
getInconsistentClassesImpl()
|
|
Set<org.semanticweb.owlapi.model.OWLClass> |
getInconsistentOWLClasses()
|
|
SortedSet<Individual> |
getIndividuals()
Gets all individuals in the knowledge base, e.g. |
|
SortedSet<Individual> |
getIndividualsImpl(Description concept)
|
|
SortedSet<DatatypeProperty> |
getIntDatatypePropertiesImpl()
|
|
Set<Constant> |
getLabelImpl(Entity entity)
|
|
org.semanticweb.owlapi.model.OWLOntologyManager |
getManager()
Gets the OWL API ontology manager. |
|
static String |
getName()
|
|
Set<NamedClass> |
getNamedClasses()
Gets all named classes in the knowledge base, e.g. |
|
Set<ObjectProperty> |
getObjectProperties()
Gets all object properties in the knowledge base, e.g. hasChild, isCapitalOf, hasEngine. |
|
org.semanticweb.owlapi.model.OWLOntology |
getOntology()
Gets the internal OWL API ontology. |
|
List<org.semanticweb.owlapi.model.OWLOntology> |
getOWLAPIOntologies()
|
|
Map<String,String> |
getPrefixes()
Returns the prefixes used in the knowledge base, e.g. foaf for foaf: |
|
Map<Individual,SortedSet<Individual>> |
getPropertyMembersImpl(ObjectProperty atomicRole)
|
|
Description |
getRangeImpl(ObjectProperty objectProperty)
|
|
org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner()
Gets the internal OWL API reasoner. |
|
ReasonerType |
getReasonerType()
Gets the type of the underlying reasoner. |
|
Set<Individual> |
getRelatedIndividualsImpl(Individual individual,
ObjectProperty objectProperty)
|
|
Set<Constant> |
getRelatedValuesImpl(Individual individual,
DatatypeProperty datatypeProperty)
|
|
SortedSet<DatatypeProperty> |
getStringDatatypePropertiesImpl()
|
|
Set<NamedClass> |
getTypesImpl(Individual individual)
|
|
boolean |
hasTypeImpl(Description concept,
Individual individual)
|
|
void |
init()
Method to be called after the component has been configured. |
|
boolean |
isSatisfiableImpl()
|
|
boolean |
isSuperClassOfImpl(Description superConcept,
Description subConcept)
|
|
static void |
main(String[] args)
Test |
|
void |
releaseKB()
Call this method to release the knowledge base. |
|
boolean |
remainsSatisfiableImpl(Axiom axiom)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OWLAPIReasoner(Set<AbstractKnowledgeSource> sources)
| Method Detail |
|---|
public OWLAPIReasonerConfigurator getConfigurator()
AbstractComponent
getConfigurator in class AbstractComponentpublic 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 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 Set<NamedClass> getNamedClasses()
BaseReasoner
public Set<ObjectProperty> getObjectProperties()
BaseReasoner
public SortedSet<DatatypeProperty> getDatatypePropertiesImpl()
public SortedSet<Individual> getIndividuals()
BaseReasoner
public ReasonerType getReasonerType()
AbstractReasonerComponent
getReasonerType in class AbstractReasonerComponent
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,
org.semanticweb.owlapi.model.IRI ontologyIRI)
public static void main(String[] args)
args - public SortedSet<DatatypeProperty> getBooleanDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getDoubleDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getIntDatatypePropertiesImpl()
public SortedSet<DatatypeProperty> getStringDatatypePropertiesImpl()
public String getBaseURI()
BaseReasoner
public Map<String,String> getPrefixes()
BaseReasoner
public void releaseKB()
AbstractReasonerComponent
releaseKB in class AbstractReasonerComponentpublic List<org.semanticweb.owlapi.model.OWLOntology> getOWLAPIOntologies()
public Set<NamedClass> getInconsistentClassesImpl()
public Set<org.semanticweb.owlapi.model.OWLClass> getInconsistentOWLClasses()
public Set<Constant> getLabelImpl(Entity entity)
public boolean remainsSatisfiableImpl(Axiom axiom)
public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
public org.semanticweb.owlapi.model.OWLOntology getOntology()
public org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||