20 friend class ::TestTripleStore;
27 enum class Option : quint32
33 Q_DECLARE_FLAGS(Options, Option)
37 QSharedPointer<Definition> _definition);
48 QString tablename()
const;
49 Options options()
const;
50 template<
typename _ObjectType_>
51 cres_qresult<void> insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicateBase,
52 const QString& _predicateSuffix,
const _ObjectType_& _object,
55 return insert(_subject, knowCore::Uri(_predicateBase, _predicateSuffix), _object,
58 template<
typename _TUri_>
59 requires knowCore::Uris::IsUriDefinition<_TUri_>::value
60 cres_qresult<void> insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
63 cres_qresult<void> insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
64 const knowCore::Uri& _value,
66 cres_qresult<void> insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
67 const knowRDF::Object& _object,
69 cres_qresult<void> insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
70 const knowCore::Uri& _type,
const knowCore::Value& _value,
71 const QString& _lang = QString(),
73 cres_qresult<void> insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
74 const knowRDF::BlankNode& _value,
76 template<
typename _TPredicate_0_,
typename _TObject_0_,
typename... _TPredicteObjects_>
78 insert(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
79 const std::tuple<_TPredicate_0_, _TObject_0_, _TPredicteObjects_...>& _objects,
81 cres_qresult<void> insert(
const knowRDF::Triple& _triple,
86 template<
typename _TObject_,
typename... _TArgs_>
87 cres_qresult<void> insert(
const Transaction& _transaction,
const knowRDF::Subject& _subject,
88 const knowCore::Uri& _predicate,
const _TObject_& _object,
90 template<
typename _TObject_,
typename... _TArgs_>
91 inline cres_qresult<void> insert(
const knowRDF::Subject& _subject,
92 const knowCore::Uri& _predicate,
const _TObject_& _object,
93 const knowCore::Uri& _predicate_next,
const _TArgs_&... _args);
96 cres_qresult<void> insert(
const Transaction&,
const knowRDF::Subject&);
98 cres_qresult<bool> hasTriple(
const knowRDF::Triple& _triple,
101 cres_qresult<void> remove(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
102 const knowCore::Uri& _value,
104 cres_qresult<void> remove(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
105 const knowRDF::Object& _object,
107 cres_qresult<void> remove(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
108 const knowCore::Uri& _type,
const knowCore::Value& _value,
109 const QString& _lang = QString(),
111 cres_qresult<void> remove(
const knowRDF::Subject& _subject,
const knowCore::Uri& _predicate,
112 const knowRDF::BlankNode& _value,
114 cres_qresult<void> remove(
const knowRDF::Triple& _triple,
123 cres_qresult<QList<knowRDF::Triple>>
triples()
const;
128 knowRDF::Triple
triple(std::size_t _r)
const;
144 cres_qresult<void> enableVersioning();
145 cres_qresult<void> disableVersioning();
147 cres_qresult<void> enableNotifications();
148 cres_qresult<void> disableNotifications();
150 QMetaObject::Connection listen(
const QObject* receiver,
const char* member,
151 Qt::ConnectionType _type = Qt::AutoConnection);
152 QMetaObject::Connection listen(
const std::function<
void(
const QByteArray&)>& _receiver);
154 QMetaObject::Connection listenOptionsChanged(
const QObject* receiver,
const char* member,
155 Qt::ConnectionType _type = Qt::AutoConnection);
156 QMetaObject::Connection listenOptionsChanged(
const std::function<
void()>& _receiver);
158 QMetaObject::Connection listenMetaChanged(
const QObject* receiver,
const char* member,
159 Qt::ConnectionType _type = Qt::AutoConnection);
160 QMetaObject::Connection listenMetaChanged(
const std::function<
void()>& _receiver);
162 bool unlisten(QMetaObject::Connection _connection);