Go to the documentation of this file.
22 #ifndef LITERAL_VALUE_H
23 #define LITERAL_VALUE_H
27 #include <QtCore/QVariant>
28 #include <QtCore/QSharedDataPointer>
455 class LiteralValueData;
LiteralValue & operator=(const QLatin1String &s)
LanguageTag language() const
static LiteralValue fromVariant(const QVariant &value, const QUrl &dataType)
static QUrl dataTypeUriFromType(QVariant::Type type)
SOPRANO_EXPORT QUrl type()
LiteralValue & operator=(bool b)
LiteralValue(const char *string)
static QVariant::Type typeFromDataTypeUri(const QUrl &dataTypeUri)
LiteralValue(const QString &string)
SOPRANO_EXPORT QUrl date()
Represents a literal value of an RDF Node.
LiteralValue & operator=(double d)
LiteralValue & operator=(const QTime &time)
LiteralValue(const QVariant &v)
bool isUnsignedInt64() const
SOPRANO_EXPORT QUrl value()
SOPRANO_EXPORT QDebug operator<<(QDebug s, const Soprano::Node &)
A LanguageTag represents a language according to RFC 3066 and RFC 4646.
LiteralValue & operator=(const QDateTime &datetime)
bool operator==(const LiteralValue &other) const
LiteralValue & operator=(const QDate &date)
LiteralValue(const QTime &time)
static LiteralValue fromString(const QString &value, const QUrl &dataTypeUri)
static LiteralValue createPlainLiteral(const QString &value, const LanguageTag &lang=LanguageTag())
QByteArray toByteArray() const
LiteralValue(const QDate &date)
static LiteralValue fromString(const QString &value, QVariant::Type type)
SOPRANO_EXPORT QUrl time()
QDateTime toDateTime() const
LiteralValue(qlonglong i)
SOPRANO_EXPORT uint qHash(const LanguageTag &node)
LiteralValue & operator=(const QByteArray &data)
LiteralValue & operator=(qlonglong i)
uint toUnsignedInt() const
LiteralValue & operator=(qulonglong i)
LiteralValue(const QDateTime &datetime)
LiteralValue(qulonglong i)
LiteralValue & operator=(const LiteralValue &other)
LiteralValue(const LiteralValue &other)
bool operator!=(const LiteralValue &other) const
LiteralValue(const QByteArray &data)
qulonglong toUnsignedInt64() const
LiteralValue & operator=(const QString &s)
QVariant::Type type() const
LiteralValue & operator=(int i)
LiteralValue & operator=(uint i)
LiteralValue(const QLatin1String &string)
bool isUnsignedInt() const
qlonglong toInt64() const