Public Types | Public Member Functions

PredicateFunction Class Reference

Represents a predicate function. More...

Inheritance diagram for PredicateFunction:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Options { NoOptions = 0, FetchGraph }

Public Member Functions

CUBI_EXPLICIT PredicateFunction (const ResourceValue &value)
 Constructs a prefix function from its name.
void setPredicate (const ResourceValue &predicate)
 Sets the predicate of this function.
ResourceValue predicate () const
 Returns the function's predicate.
void setValueSeparator (const QChar &separator)
 Sets the separator char for multiple property values.
QChar valueSeparator () const
 Returns the separator char for multiple property values.
void setGraphSeparator (const QChar &separator)
 Sets the separator char for the graph.
QChar graphSeparator () const
 Returns the separator char for the graph.
void setOptions (Options options)
 Sets the options of the function.
Options options () const
 Returns the options of the function.
PredicateFunction apply (const Value &v) const
 Applies the function to v.

Detailed Description

Represents a predicate function.

Predicate functions can only have one parameter.

Note, predicate functions are not in the official Sparql specification, but they are supported by some RDF databases like Tracker.


Member Function Documentation

PredicateFunction PredicateFunction::apply ( const Value v  )  const

Applies the function to v.

Returns a new PredicateFunction with the parameters set (see Function documentation).

void PredicateFunction::setGraphSeparator ( const QChar &  separator  ) 

Sets the separator char for the graph.

Also set the option property to FetchGraph.

void PredicateFunction::setOptions ( Options  options  ) 

Sets the options of the function.

Default is NoOptions.

void PredicateFunction::setValueSeparator ( const QChar &  separator  ) 

Sets the separator char for multiple property values.

Default is

 ','

.


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations