public class CelProcessor extends Object implements Processor
Constructor and Description |
---|
CelProcessor(Set<Integer> originalObjectProperties,
Set<Integer> originalClasses,
Set<NormalizedIntegerAxiom> normalizedAxiomSet,
NormalizedIntegerAxiomFactory factory,
IntegerEntityManager entityManager)
Constructs a new CEL processor.
|
Modifier and Type | Method and Description |
---|---|
protected IntegerSubsumerGraph |
getClassGraph()
Returns the class graph.
|
IntegerHierarchicalGraph |
getClassHierarchy()
Returns the class hierarchy after the classification has finished.
|
IntegerHierarchicalGraph |
getDataPropertyHierarchy()
Returns the data property hierarchy after the classification has
finished.
|
Map<Integer,Set<Integer>> |
getDirectTypes()
Returns the map of direct types for every individual.
|
protected IntegerEntityManager |
getEntityManager()
Returns the id generator.
|
IntegerHierarchicalGraph |
getObjectPropertyHierarchy()
Returns the object property hierarchy after the classification has
finished.
|
NormalizedIntegerAxiomFactory |
getOntologyObjectFactory() |
protected IntegerBinaryRelation |
getRelation(Integer relationId)
Returns the binary relation for a given id, or and empty relation if the
id is unknown.
|
protected Set<Integer> |
getRelationIdSet()
Returns a set containing all relation ids.
|
Map<Integer,Set<Integer>> |
getSameIndividualMap()
Returns the map of same individuals.
|
boolean |
isReady()
Tells whether the processor has classified the class hierarchy and object
property hierarchy.
|
protected void |
postProcess()
Post processes the data after the classification phase.
|
protected void |
preProcess(Set<Integer> originalObjectProperties,
Set<Integer> originalClasses,
Set<NormalizedIntegerAxiom> normalizedAxiomSet)
The configuration follows the following steps:
normalizes the ontology creating auxiliary entities
creates an extended ontonlogy based on the normalized ontology
adds the classes
creates the property hierarchy
prepares all the queues to run the algorithm
|
boolean |
process()
Makes one step in the process of classification.
|
public CelProcessor(Set<Integer> originalObjectProperties, Set<Integer> originalClasses, Set<NormalizedIntegerAxiom> normalizedAxiomSet, NormalizedIntegerAxiomFactory factory, IntegerEntityManager entityManager)
originalObjectProperties
- set of object propertiesoriginalClasses
- set of classesnormalizedAxiomSet
- set of axiomsfactory
- factoryentityManager
- entity managerprotected IntegerSubsumerGraph getClassGraph()
public IntegerHierarchicalGraph getClassHierarchy()
Processor
getClassHierarchy
in interface Processor
public IntegerHierarchicalGraph getDataPropertyHierarchy() throws UnclassifiedOntologyException
Processor
getDataPropertyHierarchy
in interface Processor
UnclassifiedOntologyException
- if the classification has not finished yetpublic Map<Integer,Set<Integer>> getDirectTypes()
Processor
getDirectTypes
in interface Processor
protected IntegerEntityManager getEntityManager()
public IntegerHierarchicalGraph getObjectPropertyHierarchy()
Processor
getObjectPropertyHierarchy
in interface Processor
public NormalizedIntegerAxiomFactory getOntologyObjectFactory()
protected IntegerBinaryRelation getRelation(Integer relationId)
relationId
- relation idprotected Set<Integer> getRelationIdSet()
public Map<Integer,Set<Integer>> getSameIndividualMap()
Processor
getSameIndividualMap
in interface Processor
public boolean isReady()
Processor
protected void postProcess()
protected void preProcess(Set<Integer> originalObjectProperties, Set<Integer> originalClasses, Set<NormalizedIntegerAxiom> normalizedAxiomSet)
originalObjectProperties
- set of object propertiesoriginalClasses
- set of classesnormalizedAxiomSet
- set of axioms, i.e. the ontologypublic boolean process()
Processor
Copyright © 2009–2015 Chair of Automata Theory - TU Dresden. All rights reserved.