NAME

RDF::Core::Function - a package of functions for query language.


DESCRIPTION

When there is a function found while evaluating query, its parameters are evaluated and passed to RDF::Core::Function apropriate piece of code. The code reference is obtained in a hash returned by getFunctions() call. Each function accepts RDF::Core::Literal or RDF::Core::Resource objects as paramaters and returns a tuple of arrays (array of two array references). The first references to an array of function results - Resource or Literal objects, the second one references to an array of predicates that could be used instead of the function. This is not always applicable, so the second array can be empty. For example, a function call:

  someBag.member()

returns ([uri://uri-of-the-first-member,....],[rdf:_1,...]).

There is a special parameter - a subject parameter, which says that a function is at position of property. For example:

  subproperty(schema:SomeProperty)

has no subject parameter defined and returns property names that are subproperties of given schema:SomeProperty.

  data:SomeObject.subproperty(schema:SomeProperty)

has subject parameter data:SomeObject and return values of subproperties for subject.

Interface

Functions implemented


LICENSE

This package is subject to the MPL (or the GPL alternatively).


AUTHOR

Ginger Alliance, rdf@gingerall.cz


SEE ALSO

RDF::Core::Query