org.openrdf.sesame.query.serql.parser
Class ReifiedPathElement

java.lang.Object
  extended byorg.openrdf.sesame.query.serql.parser.PathElement
      extended byorg.openrdf.sesame.query.serql.parser.ReifiedPathElement

public class ReifiedPathElement
extends PathElement

Represents a reified statement. A Reified_stat is equal to a Path_expr, but without a tail. This means the right node of a Reified_stat is equal to a Path_expr without edges and right nodes. A Reified_stat has an extra instance variable, i.e. its identifier. A Reified_stat {S} P {O} with identifier X expands to X rdf:type rdf:Statement, X rdf:subject S, X rdf:predicate P, X rdf:object O and S P O.

Version:
$Revision: 1.5.4.2 $
Author:
Peter van 't Hof, Arjohn Kampman

Constructor Summary
ReifiedPathElement(Var id, List leftNode, Var edge, List rightNode)
          Creates a new ReifiedPathElement.
 
Method Summary
 Var getId()
          Gets the identifier of this reified statement.
 List getTriplePatterns()
          Creates a list of triple patterns that can represent this path element.
 
Methods inherited from class org.openrdf.sesame.query.serql.parser.PathElement
getEdge, getObjectVars, getSubjectVars, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReifiedPathElement

public ReifiedPathElement(Var id,
                          List leftNode,
                          Var edge,
                          List rightNode)
Creates a new ReifiedPathElement.

Parameters:
id - Id of this reified statement.
leftNode - Left node of this reified statement.
edge - Edge of this reified statement.
rightNode - Right node of this reified statement.
Method Detail

getId

public Var getId()
Gets the identifier of this reified statement.

Returns:
Id of this Reified_stat.

getTriplePatterns

public List getTriplePatterns()
Description copied from class: PathElement
Creates a list of triple patterns that can represent this path element.

Overrides:
getTriplePatterns in class PathElement
Returns:
A List of TriplePattern objects.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.