6 #ifndef KNOWROB_PROLOG_BACKEND_H
7 #define KNOWROB_PROLOG_BACKEND_H
9 #include "knowrob/storage/QueryableStorage.h"
19 class PrologBackend :
public QueryableStorage {
bool initializeBackend(const PropertyTree &cfg) override
void count(const ResourceCounter &callback) const override
~PrologBackend() override=default
void query(const GraphQueryPtr &query, const BindingsHandler &callback) override
bool removeOne(const Triple &triple) override
bool insertOne(const Triple &triple) override
void query(const GraphQueryPtr &query, const BindingsHandler &callback) override
static PrologTerm transaction(std::string_view rdf_functor, const TripleContainerPtr &triples)
void batch(const TripleHandler &callback) const override
bool removeAll(const TripleContainerPtr &triples) override
void batchOrigin(std::string_view origin, const TripleHandler &callback) override
bool insertAll(const TripleContainerPtr &triples) override
bool removeAllWithOrigin(std::string_view origin) override
bool isPersistent() const override
std::shared_ptr< TripleContainer > TripleContainerPtr
std::function< void(std::string_view, uint64_t)> ResourceCounter
std::function< void(const BindingsPtr &)> BindingsHandler
std::function< void(const TripleContainerPtr &)> TripleHandler
std::shared_ptr< GraphQuery > GraphQueryPtr