/sparql/FilterFunctions.php

Description

List of functions used to evaluate the FILTER statements in SPARQL queries.

Functions
dateTime (line 46)

Evaluates the dateTime() function.Tries to convert a date string into a unix timestamp.

  • return: the corresponding unix timestamp
integer dateTime (String $string)
  • String $string: the date string
lang (line 122)

Evaluates the lang() function. Returns lang tag of a Literal.

  • return: the lang tag or false if there is no language tag.
String lang (String $string)
  • String $string: the string.
langMatches (line 66)

Evaluates the langMatches() function. Return true if the lang tag matches false if not.

boolean langMatches (String $lang_range, String $lang_tag)
  • String $lang_range: the string.
  • String $lang_tag: the regex pattern
regex (line 23)

Evaluates the regex() function. Returns true if the regex is matched false if not.

boolean regex (String $string, String $pattern, [String $flags = ''])
  • String $string: the string which has to be evaluated
  • String $pattern: the regex pattern
  • String $flags: additional flags like "i"
str (line 99)

Evaluates the str() function. Returns the string representation of a variable or RDF term.

boolean str (String $string)
  • String $string: the string

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