org.semanticweb.elk.reasoner.taxonomy
Class InstanceTaxonomyComputationFactory
java.lang.Object
org.semanticweb.elk.reasoner.taxonomy.InstanceTaxonomyComputationFactory
- All Implemented Interfaces:
- InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>
public class InstanceTaxonomyComputationFactory
- extends Object
- implements InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>
The factory for engines that concurrently construct an
InstanceTaxonomy. The jobs are submitted using the method
InstanceTaxonomyComputationFactory.Engine.submit(IndexedIndividual), which require the computation of
the Node for the input IndexedIndividual.
- Author:
- Yevgeny Kazakov, Markus Kroetzsch
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceTaxonomyComputationFactory
public InstanceTaxonomyComputationFactory(SaturationState saturationState,
int maxWorkers,
UpdateableInstanceTaxonomy<ElkClass,ElkNamedIndividual> partialTaxonomy)
- Create a shared engine for the input ontology index and a partially
pre-computed taxonomy object. The taxonomy is used to avoid computations
that have been made before. For this to work, the taxonomy object must
originate from an earlier run of this engine on the same ontology.
- Parameters:
saturationState - the saturation state of the reasonermaxWorkers - the maximum number of workers that can use this factorypartialTaxonomy - the (partially pre-computed) class taxonomy object to store
results in
getTaxonomy
public UpdateableInstanceTaxonomy<ElkClass,ElkNamedIndividual> getTaxonomy()
- Returns the taxonomy constructed by this engine
- Returns:
- the taxonomy constructed by this engine
getEngine
public InstanceTaxonomyComputationFactory.Engine getEngine()
- Specified by:
getEngine in interface InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>
finish
public void finish()
- Specified by:
finish in interface InputProcessorFactory<IndexedIndividual,InstanceTaxonomyComputationFactory.Engine>
printStatistics
public void printStatistics()
- Print statistics about taxonomy construction
Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.