knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <GraphSelector.h>
Public Member Functions | |
GraphSelector ()=default | |
size_t | hash () const |
bool | mergeWith (const GraphSelector &other) |
void | set (const boost::property_tree::ptree &config) |
void | write (std::ostream &os) const override |
GraphSelector ()=default | |
size_t | hash () const |
bool | mergeWith (const GraphSelector &other) |
void | set (const boost::property_tree::ptree &config) |
void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Printable | |
virtual | ~Printable ()=default |
virtual std::string | format () const |
virtual | ~Printable ()=default |
virtual std::string | format () const |
Public Attributes | |
AtomPtr | graph |
PerspectivePtr | perspective |
bool | occasional = false |
bool | uncertain = false |
std::optional< double > | begin |
std::optional< double > | end |
std::optional< double > | confidence |
The data base can contain multiple graphs, and this selector is used to select a subset of them. For example, each point in time is conceptually a separate graph, and a query may only address a specific point in time, or time interval.
Definition at line 20 of file GraphSelector.h.
|
default |
|
default |
size_t GraphSelector::hash | ( | ) | const |
Compute the hash value of this selector.
Definition at line 54 of file GraphSelector.cpp.
size_t knowrob::GraphSelector::hash | ( | ) | const |
Compute the hash value of this selector.
bool GraphSelector::mergeWith | ( | const GraphSelector & | other | ) |
Merge this selector with another selector.
other | another selector. |
Definition at line 13 of file GraphSelector.cpp.
bool knowrob::GraphSelector::mergeWith | ( | const GraphSelector & | other | ) |
Merge this selector with another selector.
other | another selector. |
void GraphSelector::set | ( | const boost::property_tree::ptree & | config | ) |
Set the selector from a property tree.
config | the property tree |
Definition at line 117 of file GraphSelector.cpp.
void knowrob::GraphSelector::set | ( | const boost::property_tree::ptree & | config | ) |
Set the selector from a property tree.
config | the property tree |
|
overridevirtual |
Print this object to a stream.
os | the stream to print to. |
Implements knowrob::Printable.
Definition at line 74 of file GraphSelector.cpp.
|
overridevirtual |
std::optional< double > knowrob::GraphSelector::begin |
The begin of the time interval of consideration.
Definition at line 42 of file GraphSelector.h.
std::optional< double > knowrob::GraphSelector::confidence |
The minimum confidence threshold for statements.
Definition at line 50 of file GraphSelector.h.
std::optional< double > knowrob::GraphSelector::end |
The end of the time interval of consideration.
Definition at line 46 of file GraphSelector.h.
AtomPtr knowrob::GraphSelector::graph |
The name of the graph, usually reflects the name of an ontology.
Definition at line 26 of file GraphSelector.h.
bool knowrob::GraphSelector::occasional = false |
True if occasional triples are considered.
Definition at line 34 of file GraphSelector.h.
PerspectivePtr knowrob::GraphSelector::perspective |
The perspective of statement.
Definition at line 30 of file GraphSelector.h.
bool knowrob::GraphSelector::uncertain = false |
True if uncertain triples are considered.
Definition at line 38 of file GraphSelector.h.