de.fuberlin.wiwiss.d2rq.rdql
Class D2RQPatternStage2

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.Stage
      extended byde.fuberlin.wiwiss.d2rq.rdql.CombinedPatternStage
          extended byde.fuberlin.wiwiss.d2rq.rdql.D2RQPatternStage2

public class D2RQPatternStage2
extends CombinedPatternStage

Instances of this Stage are created by D2RQQueryHandler to handle a set of query triples that by D2RQ-mapping refer to the same database. Created by Joerg Garbers on 25.02.05.

Since:
V0.3
Author:
jg
See Also:
CombinedPatternStage, PatternQueryCombiner

Field Summary
private  java.util.Collection expressionSet
           
private  GraphD2RQ graph
           
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.rdql.CombinedPatternStage
compiled, guard, queryConstraints, queryMapping, queryTriples, triples, varInfo
 
Fields inherited from class com.hp.hpl.jena.graph.query.Stage
previous, stillOpen
 
Constructor Summary
D2RQPatternStage2(GraphD2RQ graph, com.hp.hpl.jena.graph.query.Mapping map, com.hp.hpl.jena.graph.query.ExpressionSet constraints, com.hp.hpl.jena.graph.Triple[] triples)
           
 
Method Summary
protected  void hookPrepareExpression(com.hp.hpl.jena.graph.query.Expression e, boolean evaluable)
           
protected  com.hp.hpl.jena.util.iterator.ClosableIterator resultIteratorForTriplePattern(com.hp.hpl.jena.graph.Triple[] triples)
          Sets up PatternQueryCombiner and returns its resultTriplesIterator.
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.rdql.CombinedPatternStage
canEval, compile, compileNode, deliver, makeGuard, run, setup, updateTriplesWithDomain
 
Methods inherited from class com.hp.hpl.jena.graph.query.Stage
close, connectFrom, initial, isClosed, markClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

private GraphD2RQ graph

expressionSet

private java.util.Collection expressionSet
Constructor Detail

D2RQPatternStage2

public D2RQPatternStage2(GraphD2RQ graph,
                         com.hp.hpl.jena.graph.query.Mapping map,
                         com.hp.hpl.jena.graph.query.ExpressionSet constraints,
                         com.hp.hpl.jena.graph.Triple[] triples)
Method Detail

hookPrepareExpression

protected void hookPrepareExpression(com.hp.hpl.jena.graph.query.Expression e,
                                     boolean evaluable)
Overrides:
hookPrepareExpression in class CombinedPatternStage

resultIteratorForTriplePattern

protected com.hp.hpl.jena.util.iterator.ClosableIterator resultIteratorForTriplePattern(com.hp.hpl.jena.graph.Triple[] triples)
Sets up PatternQueryCombiner and returns its resultTriplesIterator. Passes stage information to the PatternQueryCombiner.

Specified by:
resultIteratorForTriplePattern in class CombinedPatternStage
Parameters:
triples -
Returns:
an iterator. Each result is a possible and full instanciation of triples according to D2RQ.