Package openllet.core.knowledge
Interface Base
-
- All Superinterfaces:
Boxes
- All Known Subinterfaces:
ClassesBase
,InstancesBase
,KnowledgeBase
,PropertiesBase
- All Known Implementing Classes:
KnowledgeBaseImpl
,KnowledgeBaseImplFullSync
public interface Base extends Boxes
- Since:
- 2.6.4
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.stream.Stream<openllet.aterm.ATermAppl>
allClasses()
void
binaryInstanceRetrieval(openllet.aterm.ATermAppl c, java.util.List<openllet.aterm.ATermAppl> candidates, java.util.Collection<openllet.aterm.ATermAppl> results)
void
classify()
default boolean
doExplanation()
void
ensureConsistency()
default java.util.Set<openllet.aterm.ATermAppl>
getAllClasses()
java.util.Map<openllet.aterm.ATermAppl,java.util.Map<openllet.aterm.ATermAppl,java.util.Set<openllet.aterm.ATermAppl>>>
getAnnotations()
default java.util.Set<openllet.aterm.ATermAppl>
getAnnotationSubjects()
TaxonomyBuilder
getBuilder()
ProgressMonitor
getBuilderProgressMonitor()
java.util.EnumSet<KnowledgeBase.ChangeType>
getChanges()
default java.util.Set<openllet.aterm.ATermAppl>
getClasses()
DatatypeVisitor
getDatatypeVisitor()
ExpressivityChecker
getExpChecker()
default java.lang.String
getExplanation()
default java.util.Set<openllet.aterm.ATermAppl>
getExplanationSet()
FullyDefinedClassVisitor
getFullyDefinedVisitor()
java.util.Set<openllet.aterm.ATermAppl>
getIndividuals()
java.util.Map<openllet.aterm.ATermAppl,java.util.Set<openllet.aterm.ATermAppl>>
getInstances()
KnowledgeBase
getKnowledgeBase()
java.util.Optional<TaxonomyBuilder>
getOptTaxonomyBuilder()
default java.util.Set<openllet.aterm.ATermAppl>
getProperties()
default Role
getProperty(openllet.aterm.ATerm r)
default PropertyType
getPropertyType(openllet.aterm.ATerm r)
default Role
getRole(openllet.aterm.ATerm term)
java.util.Set<java.util.Set<openllet.aterm.ATermAppl>>
getSuperClasses(openllet.aterm.ATermAppl cParam, boolean direct)
Returns the (named) superclasses of class c.default TaxonomyBuilder
getTaxonomyBuilder()
static void
handleUndefinedEntity(java.lang.String s)
default boolean
isABoxProperty(openllet.aterm.ATerm p)
default boolean
isAnnotationProperty(openllet.aterm.ATerm p)
default boolean
isClass(openllet.aterm.ATerm c)
boolean
isClassified()
default boolean
isDatatype(openllet.aterm.ATermAppl c)
default boolean
isDatatypeProperty(openllet.aterm.ATerm p)
default boolean
isIndividual(openllet.aterm.ATerm ind)
default boolean
isObjectProperty(openllet.aterm.ATerm p)
default boolean
isProperty(openllet.aterm.ATerm p)
boolean
isRealized()
boolean
isSatisfiable(openllet.aterm.ATermAppl c)
boolean
isSubClassOf(openllet.aterm.ATermAppl subCls, openllet.aterm.ATermAppl supCls)
void
prepare()
void
realize()
void
setBuilderProgressMonitor(ProgressMonitor builderProgressMonitor)
default void
setDoExplanation(boolean doExplanation)
void
setOptTaxonomyBuilder(java.util.Optional<TaxonomyBuilder> builder)
-
-
-
Method Detail
-
getIndividuals
java.util.Set<openllet.aterm.ATermAppl> getIndividuals()
- Returns:
- the set of all individuals. Returned set is unmodifiable!
-
isIndividual
default boolean isIndividual(openllet.aterm.ATerm ind)
-
getInstances
java.util.Map<openllet.aterm.ATermAppl,java.util.Set<openllet.aterm.ATermAppl>> getInstances()
-
getBuilder
TaxonomyBuilder getBuilder()
-
getExpChecker
ExpressivityChecker getExpChecker()
-
getChanges
java.util.EnumSet<KnowledgeBase.ChangeType> getChanges()
-
getAnnotations
java.util.Map<openllet.aterm.ATermAppl,java.util.Map<openllet.aterm.ATermAppl,java.util.Set<openllet.aterm.ATermAppl>>> getAnnotations()
-
handleUndefinedEntity
static void handleUndefinedEntity(java.lang.String s)
-
getOptTaxonomyBuilder
java.util.Optional<TaxonomyBuilder> getOptTaxonomyBuilder()
-
setOptTaxonomyBuilder
void setOptTaxonomyBuilder(java.util.Optional<TaxonomyBuilder> builder)
-
ensureConsistency
void ensureConsistency()
-
isSatisfiable
boolean isSatisfiable(openllet.aterm.ATermAppl c)
-
realize
void realize()
-
prepare
void prepare()
-
classify
void classify()
-
getKnowledgeBase
KnowledgeBase getKnowledgeBase()
-
isClassified
boolean isClassified()
- Returns:
- true if the classification check has been done and nothing in the KB has changed after that.
-
isRealized
boolean isRealized()
-
getBuilderProgressMonitor
ProgressMonitor getBuilderProgressMonitor()
-
setBuilderProgressMonitor
void setBuilderProgressMonitor(ProgressMonitor builderProgressMonitor)
-
getFullyDefinedVisitor
FullyDefinedClassVisitor getFullyDefinedVisitor()
-
getDatatypeVisitor
DatatypeVisitor getDatatypeVisitor()
-
getTaxonomyBuilder
default TaxonomyBuilder getTaxonomyBuilder()
-
getSuperClasses
java.util.Set<java.util.Set<openllet.aterm.ATermAppl>> getSuperClasses(openllet.aterm.ATermAppl cParam, boolean direct)
Returns the (named) superclasses of class c. Depending on the second parameter the resulting list will include either all or only the direct superclasses. A class d is a direct superclass of c iff- d is superclass of c
- there is no other class x such that x is superclass of c and d is superclass of x
*** This function will first classify the whole ontology ***
- Parameters:
cParam
- class whose superclasses are returneddirect
-- Returns:
- A set of sets, where each set in the collection represents an equivalence class. The elements of the inner class are ATermAppl objects.
-
isSubClassOf
boolean isSubClassOf(openllet.aterm.ATermAppl subCls, openllet.aterm.ATermAppl supCls)
- Parameters:
subCls
-supCls
-- Returns:
- true if class subCls is subclass of class supCls.
-
getProperties
default java.util.Set<openllet.aterm.ATermAppl> getProperties()
- Returns:
- the set of all properties.
-
getAnnotationSubjects
default java.util.Set<openllet.aterm.ATermAppl> getAnnotationSubjects()
- Returns:
- the set of key values of the annotations map
-
getPropertyType
default PropertyType getPropertyType(openllet.aterm.ATerm r)
-
isClass
default boolean isClass(openllet.aterm.ATerm c)
-
isDatatypeProperty
default boolean isDatatypeProperty(openllet.aterm.ATerm p)
-
isDatatype
default boolean isDatatype(openllet.aterm.ATermAppl c)
-
isObjectProperty
default boolean isObjectProperty(openllet.aterm.ATerm p)
-
isABoxProperty
default boolean isABoxProperty(openllet.aterm.ATerm p)
-
isAnnotationProperty
default boolean isAnnotationProperty(openllet.aterm.ATerm p)
-
isProperty
default boolean isProperty(openllet.aterm.ATerm p)
-
getClasses
default java.util.Set<openllet.aterm.ATermAppl> getClasses()
- Returns:
- the set of all named classes. Returned set is unmodifiable!
-
getAllClasses
default java.util.Set<openllet.aterm.ATermAppl> getAllClasses()
- Returns:
- the set of all named classes including TOP and BOTTOM. Returned set is modifiable.
-
allClasses
default java.util.stream.Stream<openllet.aterm.ATermAppl> allClasses()
- Returns:
- same as getAllClasses but can be lazy.
- Since:
- 2.6.2
-
getRole
default Role getRole(openllet.aterm.ATerm term)
- Parameters:
term
-- Returns:
- a role
-
getProperty
default Role getProperty(openllet.aterm.ATerm r)
-
getExplanationSet
default java.util.Set<openllet.aterm.ATermAppl> getExplanationSet()
-
setDoExplanation
default void setDoExplanation(boolean doExplanation)
- Parameters:
doExplanation
- The doExplanation to set.
-
doExplanation
default boolean doExplanation()
-
getExplanation
default java.lang.String getExplanation()
-
binaryInstanceRetrieval
void binaryInstanceRetrieval(openllet.aterm.ATermAppl c, java.util.List<openllet.aterm.ATermAppl> candidates, java.util.Collection<openllet.aterm.ATermAppl> results)
-
-