org.openrdf.elmo.smusher
Class TransitivitySmusher

java.lang.Object
  extended by org.openrdf.elmo.smusher.AbstractSmusher
      extended by org.openrdf.elmo.smusher.FixedQuerySmusher
          extended by org.openrdf.elmo.smusher.TransitivitySmusher
All Implemented Interfaces:
Smusher

public class TransitivitySmusher
extends FixedQuerySmusher

This smusher computes the transitive closure of a given predicate (by default owl:sameAs). e.g if it finds that A owl:sameAs B and B owl:sameAs C then it returns A and C as a match. This smusher itself does not iterate and thus it will not return the complete closure. It needs to be used inside an IterativeSmusher to compute the complete closure. As it uses a single query it works only on a single repository, not in cases when we need to smush things in different repositories.

Author:
Peter Mika (pmika@cs.vu.nl)

Field Summary
protected static Logger _logger
           
protected  URI _property
           
 
Fields inherited from class org.openrdf.elmo.smusher.FixedQuerySmusher
_query
 
Fields inherited from class org.openrdf.elmo.smusher.AbstractSmusher
_listeners
 
Constructor Summary
TransitivitySmusher()
           
TransitivitySmusher(URI property)
           
 
Method Summary
 
Methods inherited from class org.openrdf.elmo.smusher.FixedQuerySmusher
smush
 
Methods inherited from class org.openrdf.elmo.smusher.AbstractSmusher
addListener, removeListener, smush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static final Logger _logger

_property

protected URI _property
Constructor Detail

TransitivitySmusher

public TransitivitySmusher()

TransitivitySmusher

public TransitivitySmusher(URI property)


Copyright © 2004-2008 Aduna. All Rights Reserved.