Class GraphPattern

Description

A graph pattern which consists of triple patterns, optional or union graph patterns and filters.

  • author: Tobias Gauss <tobias.gauss@web.de>
  • version: $Id: GraphPattern.html 443 2007-06-01 16:25:38Z cax $

Located in /sparql/GraphPattern.php (line 16)

Object
   |
   --GraphPattern
Variable Summary
Method Summary
GraphPattern GraphPattern ()
void addConstraint ( &$cons, Constraint $cons)
void addOptional (integer $pattern)
void addTriplePattern (array $trpP)
void addUnion (integer $pattern)
String getGraphname ()
integer getId ()
integer getOptional ()
Array getTriplePattern ()
integer getUnion ()
array getVariables ()
void setGraphname (String $name)
void setId (integer $id)
Variables
array $constraint = array() (line 31)
  • var: A List of Constraints.
  • access: protected
mixed $graphname (line 21)

Graphname. 0 if its in the default graph.

  • access: protected
boolean $isConstructPattern (line 51)
  • var: TRUE if the GraphPattern is a construct pattern.
  • access: public
boolean $open (line 46)
  • var: TRUE if the pattern is open- FALSE if closed.
  • access: public
int $optional (line 36)
  • var: Pointer to optional patterns.
  • access: protected
int $patternId (line 57)
  • var: The GraphPatterns id.
  • access: public
array $triplePattern (line 26)
  • var: The TriplePattern.
  • access: protected
int $union (line 41)
  • var: Pointer to union patterns.
  • access: protected
Methods
Constructor GraphPattern (line 63)

Constructor

  • access: public
GraphPattern GraphPattern ()
addConstraint (line 140)

Adds a Constraint to the GraphPattern.

  • access: public
void addConstraint ( &$cons, Constraint $cons)
addOptional (line 149)

Adds a pointer to an optional graphPattern.

  • access: public
void addOptional (integer $pattern)
  • integer $pattern
addTriplePattern (line 130)

Adds a List of QueryTriples to the GraphPattern.

  • access: public
void addTriplePattern (array $trpP)
  • array $trpP
addUnion (line 159)

Adds a pointer to a union graphPattern.

  • access: public
void addUnion (integer $pattern)
  • integer $pattern
getConstraint (line 93)

Returns a constraint if there is one false if not.

  • access: public
Constraint getConstraint ()
getGraphname (line 75)

Returns the graphname.

  • access: public
String getGraphname ()
getId (line 179)

Returns the GraphPatterns id.

  • access: public
integer getId ()
getOptional (line 102)

Returns a pointer to an optional graph pattern.

  • access: public
integer getOptional ()
getTriplePattern (line 84)

Returns the triple pattern of the graph pattern.

  • access: public
Array getTriplePattern ()
getUnion (line 111)

Returns a pointer to a union graph pattern.

  • access: public
integer getUnion ()
getVariables (line 192)

Returns an array of all variables used in this graph pattern.

All variables are listed only once (unique).

  • return: Array of variable names
  • access: public
array getVariables ()
setGraphname (line 121)

Sets the graphname.

  • access: public
void setGraphname (String $name)
  • String $name
setId (line 170)

Sets the GraphPatterns Id.

  • access: public
void setId (integer $id)
  • integer $id

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:49:15 +0200 by phpDocumentor 1.3.2