Public Member Functions

LiteralValue Class Reference

Models a literal value in Sparql. More...

Inheritance diagram for LiteralValue:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LiteralValue ()
 Constructs an invalid LiteralValue.
CUBI_EXPLICIT LiteralValue (const QVariant &value)
 Constructs a LiteralValue from a QVariant.
void setValue (const QVariant &value)
 Sets the value of the LiteralValue.
QVariant value () const
 Returns the value of the LiteralVariant.

Detailed Description

Models a literal value in Sparql.

The LiteralValue class could be seen as a QVariant with a sparql() function. It can hold any type supported by QVariant, but only certains of those types can be serialized into proper Sparql.

The list of those types is:

LiteralValue also handles lists, however be warned that those are treated as sets in Sparql, that is, duplicates will be removed, and conservation of order is not guaranteed. A list in a LiteralValue models a multiple value in Sparql.


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