Class Query

Description

The Class Query represents a SPARQL query.

  • version: $Id: Query.html,v 1.9 2006/06/26 12:34:21 tgauss Exp $
  • author: Tobias Gauss <tobias.gauss@web.de>

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

Object
   |
   --Query
Method Summary
Query Query ()
void addFrom (String $graphURI)
void addFromNamed (String $graphURI)
void addGraphPattern (GraphPattern $pattern)
void addPrefix (String $prefix, String $label)
void addVar (String $var)
void addVariable (String $var)
Array getAllVars ()
void getBase ()
String getBlanknodeLabel ()
void getFromPart ()
GraphPattern getNewPattern ([boolean $constr = false])
void getPrefixes ()
void getResultForm ()
void getResultPart ()
void getResultVars ()
void setBase (String $base)
void setResultForm (String $form)
void setSolutionModifier (String $name, Value $value)
Methods
Constructor Query (line 88)

Constructor

Query Query ()
addConstructGraphPattern (line 231)

Adds a construct graph pattern to the query.

void addConstructGraphPattern (GraphPattern $pattern)
addFrom (line 242)

Adds a graphuri to the from part.

void addFrom (String $graphURI)
  • String $graphURI
addFromNamed (line 252)

Adds a graphuri to the from named part.

void addFromNamed (String $graphURI)
  • String $graphURI
addGraphPattern (line 219)

Adds a graph pattern to the result part.

void addGraphPattern (GraphPattern $pattern)
addPrefix (line 188)

Adds a prefix to the list of prefixes.

void addPrefix (String $prefix, String $label)
  • String $prefix
  • String $label
addVar (line 290)

Adds a new variable to the variable list.

void addVar (String $var)
  • String $var
addVariable (line 198)

Adds a variable to the list of result variables.

void addVariable (String $var)
  • String $var
getAllVars (line 299)

Returns a list with all used variables.

Array getAllVars ()
getBase (line 103)
void getBase ()
getBlanknodeLabel (line 165)

Returns an unused Bnode label.

String getBlanknodeLabel ()
getConstructPattern (line 322)

Returns the constcutGraphPattern of the query if there is one.

GraphPattern getConstructPattern ()
getFromNamedPart (line 156)
void getFromNamedPart ()
getFromPart (line 147)
void getFromPart ()
getNewPattern (line 275)

Generates a new GraphPattern. If it is a CONSTRUCT graph pattern $constr has to set to TRUE FALSE if not.

GraphPattern getNewPattern ([boolean $constr = false])
  • boolean $constr
getPrefixes (line 112)
void getPrefixes ()
getResultForm (line 130)
void getResultForm ()
getResultPart (line 138)
void getResultPart ()
getResultVars (line 121)
void getResultVars ()
getSolutionModifier (line 312)

Gets the solution modifiers of the query.

$solutionModifier['order by'] = value ['limit'] = vlaue ['offset'] = value

Array getSolutionModifier ()
setBase (line 176)

Sets the base part.

void setBase (String $base)
  • String $base
setResultForm (line 209)

Sets the result form.

void setResultForm (String $form)
  • String $form
setSolutionModifier (line 263)

Sets a solution modifier.

void setSolutionModifier (String $name, Value $value)
  • String $name
  • Value $value

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Mon, 26 Jun 2006 14:25:49 +0200 by phpDocumentor 1.3.0RC6