Package rdflib :: Package sparql :: Module sparqlOperators
[show private | hide private]
[frames | no frames]

Module rdflib.sparql.sparqlOperators

Function Summary
  addOperator(args, combinationArg)
SPARQL numeric + operator implemented via Python
  bound(a)
  datatype(a)
  eq(a, b)
  ge(a, b)
  getLiteralValue(v)
  getValue(param)
  gt(a, b)
  isBlank(a)
  isIRI(a)
  isLiteral(a)
  isOnCollection(collection, item)
Generate a method that can be used as a global constaint in sparql to check whether the 'item' is an element of the 'collection' (a.k.a.
  isURI(a)
  lang(a)
  le(a, b)
  lt(a, b)
  neq(a, b)
  queryString(v)
  regex(item, pattern, flag)
Invokes the XPath fn:matches function to match text against a regular expression pattern.
  str(a)
  XSDCast(source, target)
XSD Casting/Construction Support For now (this may be an issue since Literal doesn't override comparisons) it simply creates a Literal with the target datatype using the 'lexical' value of the source

Function Details

addOperator(args, combinationArg)

SPARQL numeric + operator implemented via Python

isOnCollection(collection, item)

Generate a method that can be used as a global constaint in sparql to check whether the 'item' is an element of the 'collection' (a.k.a. list). Both collection and item can be a real resource or a query string. Furthermore, item might be a plain string, that is then turned into a literal run-time. The method returns an adapted method.

regex(item, pattern, flag=None)

Invokes the XPath fn:matches function to match text against a regular expression pattern. The regular expression language is defined in XQuery 1.0 and XPath 2.0 Functions and Operators section 7.6.1 Regular Expression Syntax

XSDCast(source, target=None)

XSD Casting/Construction Support For now (this may be an issue since Literal doesn't override comparisons) it simply creates a Literal with the target datatype using the 'lexical' value of the source

Generated by Epydoc 2.1 on Mon Oct 23 14:11:23 2006 http://epydoc.sf.net