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