org.openrdf.sesame.query.serql.parser
Class ReifiedPathElement
java.lang.Object
org.openrdf.sesame.query.serql.parser.PathElement
org.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
|
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. |
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.
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.