org.openanzo.glitter.query
Class Construct

java.lang.Object
  extended by org.openanzo.glitter.query.Construct
All Implemented Interfaces:
QueryResultForm

public class Construct
extends java.lang.Object
implements QueryResultForm

The Construct query form applies the result set's bindings to an RDF template, resulting in an RDF graph.

Author:
lee

Constructor Summary
Construct(java.util.List<TriplePatternNode> template)
          Constructor.
 
Method Summary
 java.util.List<TriplePatternNode> getTemplate()
           
 SolutionSet refineSolutions(SolutionSet solutions)
          Result forms are given a chance to apply solution modifiers to the solution set before transforming the results.
 java.lang.Object serializeResults(SolutionSet solutionSet)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Construct

public Construct(java.util.List<TriplePatternNode> template)
Constructor.

Parameters:
template - The triple patterns that comprise the CONSTRUCT templtae.
Method Detail

getTemplate

public java.util.List<TriplePatternNode> getTemplate()
Returns:
The CONSTRUCT template triple patterns.

refineSolutions

public SolutionSet refineSolutions(SolutionSet solutions)
Description copied from interface: QueryResultForm
Result forms are given a chance to apply solution modifiers to the solution set before transforming the results. (For example, Projection might apply DISTINCT here.

Specified by:
refineSolutions in interface QueryResultForm
Parameters:
solutions - The original solution set
Returns:
The (possibly) modified solution set

serializeResults

public java.lang.Object serializeResults(SolutionSet solutionSet)
Specified by:
serializeResults in interface QueryResultForm
Parameters:
solutionSet - The solution set after all solution modified have been applied.
Returns:
A form of the solution set specific to this QueryResultForm.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.