3#include <QSharedDataPointer>
5#include <knowCore/ReturnValue.h>
6#include <knowCore/Uris/Uris.h>
26 Subject(
const QString& _string, Type _type);
34 template<
typename _T_, std::enable_if_t<knowCore::Uris::IsUriDefinitionV<_T_>,
int> = 0>
38 bool operator==(
const Subject& _rhs)
const;
42 QString variableName()
const;
43 QByteArray md5()
const;
44 QJsonValue toJsonValue()
const;
46 QCborValue toCborValue()
const;
50 QSharedDataPointer<Private> d;
52 uint qHash(
const Subject& key, uint seed = 0);
59 case knowRDF::Subject::Type::Undefined:
61 case knowRDF::Subject::Type::Uri:
62 return format_to(ctx.out(),
"uri({})", p.uri());
63 case knowRDF::Subject::Type::BlankNode:
64 return format_to(ctx.out(),
"blank_node({})", p.blankNode());
65 case knowRDF::Subject::Type::Variable:
66 return format_to(ctx.out(),
"variable(?{})", p.variableName());
68 return forward(
"undefined()", ctx);
Definition ReturnValue.h:29
Definition BlankNode.h:23
Subject(const _T_ &_t)
Definition Subject.h:35