knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <ReifiedTriple.h>
Public Member Functions | |
ReifiedTriple (const Triple &triple, const VocabularyPtr &vocabulary, const IRIAtomPtr &reifiedName=nullptr) | |
auto | begin () |
auto | end () |
auto | begin () const |
auto | end () const |
ReifiedTriple (const Triple &triple, const VocabularyPtr &vocabulary, const IRIAtomPtr &reifiedName=nullptr) | |
auto | begin () |
auto | end () |
auto | begin () const |
auto | end () const |
Static Public Member Functions | |
static bool | isPartOfReification (const Triple &triple) |
static bool | isReifiable (const Triple &triple) |
static bool | isPartOfReification (const Triple &triple) |
static bool | isReifiable (const Triple &triple) |
Protected Member Functions | |
Triple * | create (std::string_view subject, const AtomPtr &property, const std::optional< std::string_view > &g) |
Triple * | create (std::string_view subject, const AtomPtr &property, const std::optional< std::string_view > &g) |
Protected Attributes | |
VocabularyPtr | vocabulary_ |
std::vector< TriplePtr > | reified_ |
knowrob::IRIAtomPtr | name_ |
std::string | generatedString_ |
A collection of triples that creates a reified view on another triple. Note that triple data is not copy, so caller should ensure that the original triple is not deleted while the reified view is used.
Definition at line 19 of file ReifiedTriple.h.
|
explicit |
Create a reified view on a triple.
triple | the triple to reify. |
vocabulary | the vocabulary to use for reification. |
reifiedName | the name of the reified triple. |
Definition at line 14 of file ReifiedTriple.cpp.
|
explicit |
Create a reified view on a triple.
triple | the triple to reify. |
vocabulary | the vocabulary to use for reification. |
reifiedName | the name of the reified triple. |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 81 of file ReifiedTriple.cpp.
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Check if a triple belongs to the reified representation of another triple.
triple | the triple to check. |
Definition at line 91 of file ReifiedTriple.cpp.
|
static |
Check if a triple belongs to the reified representation of another triple.
triple | the triple to check. |
|
static |
Check if a triple is reifiable, i.e. if it is contextualized such that a reified representation is required in case a backend does not support contextualization of triples.
triple | the triple to check. |
Definition at line 98 of file ReifiedTriple.cpp.
|
static |
Check if a triple is reifiable, i.e. if it is contextualized such that a reified representation is required in case a backend does not support contextualization of triples.
triple | the triple to check. |
|
protected |
Definition at line 69 of file ReifiedTriple.h.
|
protected |
Definition at line 68 of file ReifiedTriple.h.
|
protected |
Definition at line 67 of file ReifiedTriple.h.
|
protected |
Definition at line 66 of file ReifiedTriple.h.