org.semanticweb.elk.reasoner.taxonomy
Class ClassTaxonomyComputationFactory

java.lang.Object
  extended by org.semanticweb.elk.reasoner.taxonomy.ClassTaxonomyComputationFactory
All Implemented Interfaces:
InputProcessorFactory<Collection<IndexedClass>,ClassTaxonomyComputationFactory.Engine>

public class ClassTaxonomyComputationFactory
extends Object
implements InputProcessorFactory<Collection<IndexedClass>,ClassTaxonomyComputationFactory.Engine>

The factory for engines that concurrently construct a Taxonomy. The jobs are submitted using the method ClassTaxonomyComputationFactory.Engine.submit(Collection), which require the computation of the Node for the input Collection of IndexedClass.

Author:
Yevgeny Kazakov, Markus Kroetzsch

Nested Class Summary
 class ClassTaxonomyComputationFactory.Engine
           
 
Constructor Summary
ClassTaxonomyComputationFactory(SaturationState saturationState, int maxWorkers)
          Create a new class taxonomy engine for the input ontology index.
ClassTaxonomyComputationFactory(SaturationState saturationState, int maxWorkers, UpdateableTaxonomy<ElkClass> partialTaxonomy)
          Create a shared engine for the input ontology index and a partially pre-computed taxonomy object.
 
Method Summary
 void finish()
           
 ClassTaxonomyComputationFactory.Engine getEngine()
           
 SaturationStatistics getRuleAndConclusionStatistics()
           
 UpdateableTaxonomy<ElkClass> getTaxonomy()
          Returns the taxonomy constructed by this engine
 void printStatistics()
          Print statistics about taxonomy construction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassTaxonomyComputationFactory

public ClassTaxonomyComputationFactory(SaturationState saturationState,
                                       int maxWorkers,
                                       UpdateableTaxonomy<ElkClass> 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 reasoner
maxWorkers - the maximum number of workers that can use this factory
partialTaxonomy - the (partially pre-computed) class taxonomy object to store results in

ClassTaxonomyComputationFactory

public ClassTaxonomyComputationFactory(SaturationState saturationState,
                                       int maxWorkers)
Create a new class taxonomy engine for the input ontology index.

Parameters:
saturationState - the saturation state of the reasoner
maxWorkers - the maximum number of workers that can use this factory
Method Detail

getTaxonomy

public UpdateableTaxonomy<ElkClass> getTaxonomy()
Returns the taxonomy constructed by this engine

Returns:
the taxonomy constructed by this engine

getEngine

public ClassTaxonomyComputationFactory.Engine getEngine()
Specified by:
getEngine in interface InputProcessorFactory<Collection<IndexedClass>,ClassTaxonomyComputationFactory.Engine>

finish

public void finish()
Specified by:
finish in interface InputProcessorFactory<Collection<IndexedClass>,ClassTaxonomyComputationFactory.Engine>

printStatistics

public void printStatistics()
Print statistics about taxonomy construction


getRuleAndConclusionStatistics

public SaturationStatistics getRuleAndConclusionStatistics()


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.