|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Storage.h>


Public Member Functions | |
| Storage (StorageFeatures features=StorageFeature::NothingSpecial) | |
| virtual | ~Storage ()=default |
| PluginLanguage | storageLanguage () const |
| const auto & | vocabulary () const |
| void | setVocabulary (std::shared_ptr< Vocabulary > vocabulary) |
| bool | supports (StorageFeature feature) const |
| virtual bool | insertOne (const Triple &triple)=0 |
| virtual bool | insertAll (const TripleContainerPtr &triples)=0 |
| virtual bool | removeOne (const Triple &triple)=0 |
| virtual bool | removeAll (const TripleContainerPtr &triples)=0 |
| virtual bool | removeAllWithOrigin (std::string_view origin)=0 |
| virtual bool | initializeBackend (const PropertyTree &config)=0 |
| std::optional< std::string > | getVersionOfOrigin (std::string_view origin) const |
| void | setVersionOfOrigin (std::string_view origin, std::optional< std::string_view > version) |
| Storage (StorageFeatures features=StorageFeature::NothingSpecial) | |
| virtual | ~Storage ()=default |
| PluginLanguage | storageLanguage () const |
| const auto & | vocabulary () const |
| void | setVocabulary (std::shared_ptr< Vocabulary > vocabulary) |
| bool | supports (StorageFeature feature) const |
| virtual bool | insertOne (const Triple &triple)=0 |
| virtual bool | insertAll (const TripleContainerPtr &triples)=0 |
| virtual bool | removeOne (const Triple &triple)=0 |
| virtual bool | removeAll (const TripleContainerPtr &triples)=0 |
| virtual bool | removeAllWithOrigin (std::string_view origin)=0 |
| virtual bool | initializeBackend (const PropertyTree &config)=0 |
| std::optional< std::string > | getVersionOfOrigin (std::string_view origin) const |
| void | setVersionOfOrigin (std::string_view origin, std::optional< std::string_view > version) |
Public Member Functions inherited from knowrob::DataSourceHandler | |
| DataSourceHandler ()=default | |
| virtual | ~DataSourceHandler ()=default |
| void | addDataHandler (const std::string &format, const DataSourceLoader &fn) |
| bool | loadDataSource (const DataSourcePtr &dataSource) |
| bool | hasDataHandler (const DataSourcePtr &dataSource) const |
| DataSourceHandler ()=default | |
| virtual | ~DataSourceHandler ()=default |
| void | addDataHandler (const std::string &format, const DataSourceLoader &fn) |
| bool | loadDataSource (const DataSourcePtr &dataSource) |
| bool | hasDataHandler (const DataSourcePtr &dataSource) const |
Protected Member Functions | |
| void | enableFeature (StorageFeature feature) |
| void | setStorageLanguage (PluginLanguage storageLanguage) |
| void | enableFeature (StorageFeature feature) |
| void | setStorageLanguage (PluginLanguage storageLanguage) |
Protected Member Functions inherited from knowrob::DataSourceHandler | |
| virtual bool | loadDataSourceWithUnknownFormat (const DataSourcePtr &) |
| virtual bool | loadDataSourceWithUnknownFormat (const DataSourcePtr &) |
Protected Attributes | |
| std::map< std::string, std::string > | originVersions_ |
| std::shared_ptr< Vocabulary > | vocabulary_ |
| StorageFeatures | features_ |
| PluginLanguage | storageLanguage_ |
Protected Attributes inherited from knowrob::DataSourceHandler | |
| std::map< std::string, DataSourceLoader > | dataSourceHandler_ |
Friends | |
| class | StorageManager |
A data backend is a component that stores extensional data. Note that data backends do not do reification internally – reification is only handled via BackendInterface. Meaning that data backends without support for triple context can just ignore any contextual parameters handed to them.
|
inlineexplicit |
|
virtualdefault |
|
inlineexplicit |
|
virtualdefault |
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 125 of file Storage.h.
|
inline |
|
pure virtual |
Initialize this backend from a property tree.
| config | a property tree. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, and knowrob::PrologBackend.
|
pure virtual |
Initialize this backend from a property tree.
| config | a property tree. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, and knowrob::PrologBackend.
|
pure virtual |
Add assertions to this backend.
| triples | a set of triples. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Add assertions to this backend.
| triples | a set of triples. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Add an assertion to this backend.
| triple | a triple. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Add an assertion to this backend.
| triple | a triple. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Delete all matching statements from this backend.
| triples | a set of triples. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Delete all matching statements from this backend.
| triples | a set of triples. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Delete all statements with a given origin from this backend.
| origin | the origin of the statements to be deleted. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Delete all statements with a given origin from this backend.
| origin | the origin of the statements to be deleted. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Delete the first matching statement from this backend.
| triple | a triple. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
pure virtual |
Delete the first matching statement from this backend.
| triple | a triple. |
Implemented in knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, knowrob::PrologBackend, knowrob::RedlandModel, knowrob::MongoKnowledgeGraph, and knowrob::PrologBackend.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |