org.topbraid.spin.util
Class PropertyPathsGetter

java.lang.Object
  extended by org.topbraid.spin.model.visitor.AbstractTriplesVisitor
      extended by org.topbraid.spin.util.PropertyPathsGetter

public class PropertyPathsGetter
extends AbstractTriplesVisitor

A utility that can be used to find all SimplePropertyPaths encoded in a SPIN element where either subject or object is ?this.

Author:
Holger Knublauch

Constructor Summary
PropertyPathsGetter(Element element, java.util.Map<Property,RDFNode> initialBindings)
           
 
Method Summary
 java.util.Set<SimplePropertyPath> getResults()
           
protected  void handleTriplePattern(TriplePattern triplePattern, java.util.Map<Property,RDFNode> bindings)
          Will be called on each TriplePattern.
 
Methods inherited from class org.topbraid.spin.model.visitor.AbstractTriplesVisitor
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPathsGetter

public PropertyPathsGetter(Element element,
                           java.util.Map<Property,RDFNode> initialBindings)
Method Detail

getResults

public java.util.Set<SimplePropertyPath> getResults()

handleTriplePattern

protected void handleTriplePattern(TriplePattern triplePattern,
                                   java.util.Map<Property,RDFNode> bindings)
Description copied from class: AbstractTriplesVisitor
Will be called on each TriplePattern.

Specified by:
handleTriplePattern in class AbstractTriplesVisitor
Parameters:
triplePattern - the TriplePattern