Constructor and Description |
---|
RuleBasedProcessor(Set<Integer> originalObjectProperties,
Set<Integer> originalClasses,
Set<NormalizedIntegerAxiom> normalizedAxiomSet,
OntologyExpressivity expressivity,
NormalizedIntegerAxiomFactory factory,
IntegerEntityManager entityManager)
Constructs a new rule-based processor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAxioms(Set<NormalizedIntegerAxiom> normalizedAxiomSet) |
protected IntegerSubsumerGraph |
getClassGraph()
Returns the class graph.
|
IntegerHierarchicalGraph |
getClassHierarchy()
Returns the class hierarchy after the classification has finished.
|
List<Map.Entry<String,String>> |
getConfigurationInfo()
Returns information about how the processor configuration.
|
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.
|
IntegerHierarchicalGraph |
getObjectPropertyHierarchy()
Returns the object property hierarchy after the classification has
finished.
|
NormalizedIntegerAxiomFactory |
getOntologyObjectFactory()
Returns the ontology object factory.
|
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.
|
List<Map.Entry<String,String>> |
getStatusInfo()
Returns information about the processor status.
|
boolean |
isReady()
Tells whether the processor has classified the class hierarchy and object
property hierarchy.
|
void |
outputSetR(Writer writer) |
void |
outputSetS(Writer writer) |
protected void |
postProcess()
Post processes the data after the classification phase.
|
protected void |
preProcess(ExtendedOntology ontology)
The configuration follows the following steps:
creates the property hierarchy
prepares all the queues to run the algorithm
|
boolean |
process()
Makes one step in the process of classification.
|
String |
showConfigurationInfo() |
String |
showStatusInfo() |
public RuleBasedProcessor(Set<Integer> originalObjectProperties, Set<Integer> originalClasses, Set<NormalizedIntegerAxiom> normalizedAxiomSet, OntologyExpressivity expressivity, NormalizedIntegerAxiomFactory factory, IntegerEntityManager entityManager)
originalObjectProperties
- set of original object propertiesoriginalClasses
- set of original classesnormalizedAxiomSet
- set of normalized axiomsexpressivity
- expressivityfactory
- factory of normalized integer axiomsentityManager
- entity managerpublic void addAxioms(Set<NormalizedIntegerAxiom> normalizedAxiomSet)
protected IntegerSubsumerGraph getClassGraph()
public IntegerHierarchicalGraph getClassHierarchy()
Processor
getClassHierarchy
in interface Processor
public List<Map.Entry<String,String>> getConfigurationInfo()
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
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 List<Map.Entry<String,String>> getStatusInfo()
public boolean isReady()
Processor
protected void postProcess()
protected void preProcess(ExtendedOntology ontology)
ontology
- ontologypublic boolean process()
Processor
public String showConfigurationInfo()
public String showStatusInfo()
public void outputSetS(Writer writer) throws IOException
IOException
public void outputSetR(Writer writer) throws IOException
IOException
Copyright © 2009–2015 Chair of Automata Theory - TU Dresden. All rights reserved.