knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <MongologReasoner.h>
Public Member Functions | |
MongologReasoner () | |
~MongologReasoner () override | |
bool | initializeReasoner (const PropertyTree &cfg) override |
const auto & | knowledgeGraph () const |
void | unload () override |
MongologReasoner () | |
~MongologReasoner () override | |
bool | initializeReasoner (const PropertyTree &cfg) override |
const auto & | knowledgeGraph () const |
void | unload () override |
Public Member Functions inherited from knowrob::PrologReasoner | |
PrologReasoner () | |
~PrologReasoner () override | |
PrologReasoner (const PrologReasoner &)=delete | |
bool | setReasonerSetting (const TermPtr &key, const TermPtr &valueString) |
bool | consult (const std::filesystem::path &uri, const char *module={}, bool doTransformQuery=true) |
bool | load_rdf_xml (const std::filesystem::path &rdfFile) |
PrologTerm | transformGoal (const PrologTerm &goal) |
std::list< TermPtr > | runTests (const std::string &target) |
bool | evaluate (GoalPtr query) override |
PrologReasoner () | |
~PrologReasoner () override | |
PrologReasoner (const PrologReasoner &)=delete | |
bool | setReasonerSetting (const TermPtr &key, const TermPtr &valueString) |
bool | consult (const std::filesystem::path &uri, const char *module={}, bool doTransformQuery=true) |
bool | load_rdf_xml (const std::filesystem::path &rdfFile) |
PrologTerm | transformGoal (const PrologTerm &goal) |
std::list< TermPtr > | runTests (const std::string &target) |
bool | initializeReasoner (const PropertyTree &cfg) override |
bool | evaluate (GoalPtr query) override |
void | unload () override |
Public Member Functions inherited from knowrob::GoalDrivenReasoner | |
GoalDrivenReasoner () | |
bool | hasFeature (GoalDrivenReasonerFeature feature) const |
void | enableFeature (GoalDrivenReasonerFeature feature) |
bool | isRelationDefined (const PredicateIndicator &indicator) |
bool | isClassDefined (const std::string_view &iri) |
void | defineRelation (const PredicateIndicator &indicator) |
void | defineRelation (const IRIAtomPtr &iri) |
void | undefineRelation (const PredicateIndicator &indicator) |
void | defineClass (const IRIAtomPtr &iri) |
void | undefineClass (const IRIAtomPtr &iri) |
const auto & | definedRelations () const |
const auto & | definedClasses () const |
GoalDrivenReasoner () | |
bool | hasFeature (GoalDrivenReasonerFeature feature) const |
void | enableFeature (GoalDrivenReasonerFeature feature) |
bool | isRelationDefined (const PredicateIndicator &indicator) |
bool | isClassDefined (const std::string_view &iri) |
void | defineRelation (const PredicateIndicator &indicator) |
void | defineRelation (const IRIAtomPtr &iri) |
void | undefineRelation (const PredicateIndicator &indicator) |
void | defineClass (const IRIAtomPtr &iri) |
void | undefineClass (const IRIAtomPtr &iri) |
const auto & | definedRelations () const |
const auto & | definedClasses () const |
Public Member Functions inherited from knowrob::Reasoner | |
Reasoner () | |
virtual | ~Reasoner ()=default |
auto & | reasonerName () const |
auto | reasonerLanguage () const |
auto | storage () const |
template<class T > | |
std::shared_ptr< T > | getTypedStorage () const |
ReasonerManager & | reasonerManager () const |
void | pushWork (const std::function< void(void)> &fn) |
void | setStorage (const StoragePtr &storage) |
Reasoner () | |
virtual | ~Reasoner ()=default |
auto & | reasonerName () const |
auto | reasonerLanguage () const |
auto | storage () const |
template<class T > | |
std::shared_ptr< T > | getTypedStorage () const |
ReasonerManager & | reasonerManager () const |
void | pushWork (const std::function< void(void)> &fn) |
void | setStorage (const StoragePtr &storage) |
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 | |
std::string_view | callFunctor () override |
bool | initializeDefaultPackages () override |
void | initializeReasonerStorage () override |
std::string_view | callFunctor () override |
bool | initializeDefaultPackages () override |
void | initializeReasonerStorage () override |
Protected Member Functions inherited from knowrob::PrologReasoner | |
virtual bool | initializeGlobalPackages () |
bool | loadDataSourceWithUnknownFormat (const DataSourcePtr &dataFile) override |
AnswerYesPtr | yes (const GoalPtr &query, const PrologTerm &rdfGoal, const PrologTerm &frameTerm) |
AnswerNoPtr | no (const GoalPtr &query) |
PrologTerm | getReasonerQuery (const PrologTerm &goal) |
virtual bool | initializeGlobalPackages () |
bool | loadDataSourceWithUnknownFormat (const DataSourcePtr &dataFile) override |
AnswerYesPtr | yes (const GoalPtr &query, const PrologTerm &rdfGoal, const PrologTerm &frameTerm) |
AnswerNoPtr | no (const GoalPtr &query) |
PrologTerm | getReasonerQuery (const PrologTerm &goal) |
Protected Attributes | |
std::shared_ptr< MongoKnowledgeGraph > | knowledgeGraph_ |
Protected Attributes inherited from knowrob::PrologReasoner | |
std::shared_ptr< PrologBackend > | knowledgeGraph_ |
Protected Attributes inherited from knowrob::GoalDrivenReasoner | |
std::set< PredicateIndicator > | definedRelations_ |
std::set< PredicateIndicator > | definedClasses_ |
int | features_ |
Protected Attributes inherited from knowrob::DataSourceHandler | |
std::map< std::string, DataSourceLoader > | dataSourceHandler_ |
Additional Inherited Members | |
Static Public Member Functions inherited from knowrob::PrologReasoner | |
static std::shared_ptr< NamedReasoner > | getDefinedReasoner (const term_t &t_reasonerManager, const term_t &t_reasonerModule) |
static std::shared_ptr< NamedReasoner > | getDefinedReasoner (const term_t &t_reasonerManager, const term_t &t_reasonerModule) |
Static Protected Member Functions inherited from knowrob::PrologReasoner | |
static bool | putQueryFrame (PrologTerm &frameTerm, const GraphSelector &frame) |
static std::shared_ptr< GraphSelector > | createAnswerFrame (const PrologTerm &plTerm) |
static bool | putQueryFrame (PrologTerm &frameTerm, const GraphSelector &frame) |
static std::shared_ptr< GraphSelector > | createAnswerFrame (const PrologTerm &plTerm) |
Static Protected Attributes inherited from knowrob::PrologReasoner | |
static bool | isKnowRobInitialized_ = false |
Definition at line 21 of file MongologReasoner.h.
MongologReasoner::MongologReasoner | ( | ) |
Definition at line 31 of file MongologReasoner.cpp.
|
overridedefault |
knowrob::MongologReasoner::MongologReasoner | ( | ) |
|
override |
|
overrideprotectedvirtual |
Reimplemented from knowrob::PrologReasoner.
Definition at line 85 of file MongologReasoner.cpp.
|
overrideprotectedvirtual |
Reimplemented from knowrob::PrologReasoner.
|
overrideprotectedvirtual |
Reimplemented from knowrob::PrologReasoner.
Definition at line 44 of file MongologReasoner.cpp.
|
overrideprotectedvirtual |
Reimplemented from knowrob::PrologReasoner.
|
overridevirtual |
Initialize a reasoner by configuring it with a property tree.
ptree | a PropertyTree object. |
Implements knowrob::Reasoner.
Definition at line 67 of file MongologReasoner.cpp.
|
overridevirtual |
Initialize a reasoner by configuring it with a property tree.
ptree | a PropertyTree object. |
Reimplemented from knowrob::PrologReasoner.
|
inlineoverrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
inline |
Definition at line 35 of file MongologReasoner.h.
|
inline |
Definition at line 35 of file MongologReasoner.h.
|
overridevirtual |
Unload the reasoner, meaning that all static resources associated to this reasoner are released.
Reimplemented from knowrob::Reasoner.
Definition at line 37 of file MongologReasoner.cpp.
|
overridevirtual |
Unload the reasoner, meaning that all static resources associated to this reasoner are released.
Reimplemented from knowrob::PrologReasoner.
|
protected |
Definition at line 41 of file MongologReasoner.h.