Class Query

Description

The Class Query represents a SPARQL query.



History:

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

Object
   |
   --Query
Variable Summary
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)
Variables
int $graphPatternCounter (line 69)
  • var: GraphPattern counter.
  • access: public
boolean $isEmpty (line 85)
  • var: TRUE if the query is empty FALSE if not.
  • access: public
array $prefixes = array() (line 29)
  • var: Array that vontains used prefixes and namespaces.
  • access: public
array $usedVars (line 74)
  • var: List of all vars used in the query.
  • access: public
Methods
Constructor Query (line 91)

Constructor

  • access: public
Query Query ()
addConstructGraphPattern (line 246)

Adds a construct graph pattern to the query.

  • access: public
void addConstructGraphPattern (GraphPattern $pattern)
addFrom (line 257)

Adds a graphuri to the from part.

  • access: public
void addFrom (String $graphURI)
  • String $graphURI
addFromNamed (line 267)

Adds a graphuri to the from named part.

  • access: public
void addFromNamed (String $graphURI)
  • String $graphURI
addGraphPattern (line 234)

Adds a graph pattern to the result part.

  • access: public
void addGraphPattern (GraphPattern $pattern)
addPrefix (line 203)

Adds a prefix to the list of prefixes.

  • access: public
void addPrefix (String $prefix, String $label)
  • String $prefix
  • String $label
addVar (line 305)

Adds a new variable to the variable list.

  • access: public
void addVar (String $var)
  • String $var
addVariable (line 213)

Adds a variable to the list of result variables.

  • access: public
void addVariable (String $var)
  • String $var
getAllVars (line 314)

Returns a list with all used variables.

  • access: public
Array getAllVars ()
getBase (line 106)
  • access: public
void getBase ()
getBlanknodeLabel (line 180)

Returns an unused Bnode label.

  • access: public
String getBlanknodeLabel ()
getConstructPattern (line 337)

Returns the constcutGraphPattern of the query if there is one.

  • access: public
GraphPattern getConstructPattern ()
getFromNamedPart (line 159)
  • access: public
void getFromNamedPart ()
getFromPart (line 150)
  • access: public
void getFromPart ()
getNewPattern (line 290)

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

  • access: public
GraphPattern getNewPattern ([boolean $constr = false])
  • boolean $constr
getPrefixes (line 115)
  • access: public
void getPrefixes ()
getResultForm (line 133)
  • access: public
void getResultForm ()
getResultPart (line 141)
  • access: public
void getResultPart ()
getResultVars (line 124)
  • access: public
void getResultVars ()
getSolutionModifier (line 327)

Gets the solution modifiers of the query.

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

  • access: public
Array getSolutionModifier ()
getSolutionModifiers (line 171)
  • access: public
void getSolutionModifiers ()
setBase (line 191)

Sets the base part.

  • access: public
void setBase (String $base)
  • String $base
setResultForm (line 224)

Sets the result form.

  • access: public
void setResultForm (String $form)
  • String $form
setSolutionModifier (line 278)

Sets a solution modifier.

  • access: public
void setSolutionModifier (String $name, Value $value)
  • String $name
  • Value $value

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Fri, 13 Jan 2006 07:48:54 +0100 by phpDocumentor 1.3.0RC4