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


Public Member Functions | |
| TripleTemplate () | |
| TripleTemplate (std::string_view subject_iri, std::string_view predicate_iri) | |
| TripleTemplate (std::string_view subject_iri, std::string_view predicate_iri, std::string_view object_iri) | |
| template<typename ValT > | |
| TripleTemplate (std::string_view subject, std::string_view predicate, const ValT &object, XSDType type) | |
| TripleTemplate (const Triple &other) | |
| void | setSubject (std::string_view subject) override |
| void | setPredicate (std::string_view predicate) override |
| void | setObjectIRI (std::string_view object) override |
| void | setSubjectBlank (std::string_view identifier) override |
| void | setObjectBlank (std::string_view identifier) override |
| void | setStringValue (std::string_view v) override |
| void | setDoubleValue (double v) override |
| void | setFloatValue (float v) override |
| void | setIntValue (int v) override |
| void | setBooleanValue (bool v) override |
| void | setLongValue (long v) override |
| void | setShortValue (short v) override |
| void | setUnsignedLongValue (unsigned long v) override |
| void | setUnsignedIntValue (unsigned int v) override |
| void | setUnsignedShortValue (unsigned short v) override |
| void | setGraph (std::string_view graph) override |
| void | setPerspective (std::string_view perspective) override |
| std::string_view | subject () const override |
| std::string_view | predicate () const override |
| std::string_view | valueAsString () const override |
| double | valueAsDouble () const override |
| float | valueAsFloat () const override |
| long | valueAsLong () const override |
| int | valueAsInt () const override |
| bool | valueAsBoolean () const override |
| short | valueAsShort () const override |
| unsigned long | valueAsUnsignedLong () const override |
| unsigned int | valueAsUnsignedInt () const override |
| unsigned short | valueAsUnsignedShort () const override |
| std::optional< std::string_view > | graph () const override |
| std::optional< std::string_view > | perspective () const override |
| void | reset () override |
| TripleTemplate () | |
| TripleTemplate (std::string_view subject_iri, std::string_view predicate_iri) | |
| TripleTemplate (std::string_view subject_iri, std::string_view predicate_iri, std::string_view object_iri) | |
| template<typename ValT > | |
| TripleTemplate (std::string_view subject, std::string_view predicate, const ValT &object, XSDType type) | |
| TripleTemplate (const Triple &other) | |
| void | setSubject (std::string_view subject) override |
| void | setPredicate (std::string_view predicate) override |
| void | setObjectIRI (std::string_view object) override |
| void | setSubjectBlank (std::string_view identifier) override |
| void | setObjectBlank (std::string_view identifier) override |
| void | setStringValue (std::string_view v) override |
| void | setDoubleValue (double v) override |
| void | setFloatValue (float v) override |
| void | setIntValue (int v) override |
| void | setBooleanValue (bool v) override |
| void | setLongValue (long v) override |
| void | setShortValue (short v) override |
| void | setUnsignedLongValue (unsigned long v) override |
| void | setUnsignedIntValue (unsigned int v) override |
| void | setUnsignedShortValue (unsigned short v) override |
| void | setGraph (std::string_view graph) override |
| void | setPerspective (std::string_view perspective) override |
| std::string_view | subject () const override |
| std::string_view | predicate () const override |
| std::string_view | valueAsString () const override |
| double | valueAsDouble () const override |
| float | valueAsFloat () const override |
| long | valueAsLong () const override |
| int | valueAsInt () const override |
| bool | valueAsBoolean () const override |
| short | valueAsShort () const override |
| unsigned long | valueAsUnsignedLong () const override |
| unsigned int | valueAsUnsignedInt () const override |
| unsigned short | valueAsUnsignedShort () const override |
| std::optional< std::string_view > | graph () const override |
| std::optional< std::string_view > | perspective () const override |
| void | reset () override |
Public Member Functions inherited from knowrob::Triple | |
| Triple () | |
| Triple (XSDType xsdType) | |
| virtual | ~Triple ()=default |
| bool | mergeFrame (const Triple &other) |
| bool | isXSDLiteral () const |
| bool | isSubjectBlank () const |
| bool | isObjectBlank () const |
| bool | isObjectIRI () const |
| bool | isSubjectIRI () const |
| auto | xsdType () const |
| auto | xsdTypeIRI () const |
| void | setXSDValue (std::string_view v, XSDType type) |
| std::string | createStringValue () const |
| bool | isOccasional () const |
| bool | isUncertain () const |
| auto | begin () const |
| auto | end () const |
| auto | confidence () const |
| void | setIsOccasional (bool isOccasional) |
| void | setIsUncertain (bool isUncertain) |
| void | setBegin (double begin) |
| void | setEnd (double end) |
| void | setConfidence (double confidence) |
| bool | operator== (const Triple &other) const |
| bool | operator< (const Triple &other) const |
| void | write (std::ostream &os) const override |
| Triple () | |
| Triple (XSDType xsdType) | |
| virtual | ~Triple ()=default |
| bool | mergeFrame (const Triple &other) |
| bool | isXSDLiteral () const |
| bool | isSubjectBlank () const |
| bool | isObjectBlank () const |
| bool | isObjectIRI () const |
| bool | isSubjectIRI () const |
| auto | xsdType () const |
| auto | xsdTypeIRI () const |
| void | setXSDValue (std::string_view v, XSDType type) |
| std::string | createStringValue () const |
| bool | isOccasional () const |
| bool | isUncertain () const |
| auto | begin () const |
| auto | end () const |
| auto | confidence () const |
| void | setIsOccasional (bool isOccasional) |
| void | setIsUncertain (bool isUncertain) |
| void | setBegin (double begin) |
| void | setEnd (double end) |
| void | setConfidence (double confidence) |
| bool | operator== (const Triple &other) const |
| bool | operator< (const Triple &other) const |
| 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 |
Protected Types | |
| using | TypedObject = std::variant< StringType, float, double, long, int, short, bool, unsigned long, unsigned int, unsigned short > |
| using | TypedObject = std::variant< StringType, float, double, long, int, short, bool, unsigned long, unsigned int, unsigned short > |
Protected Member Functions | |
| template<typename ValT > | |
| void | set (const ValT &value, XSDType type) |
| template<typename ValT > | |
| void | set (const ValT &value, XSDType type) |
Protected Attributes | |
| StringType | subject_ |
| StringType | predicate_ |
| TypedObject | object_ |
| std::optional< StringType > | graph_ |
| std::optional< StringType > | perspective_ |
Protected Attributes inherited from knowrob::Triple | |
| bool | isOccasional_ |
| bool | isUncertain_ |
| std::optional< double > | begin_ |
| std::optional< double > | end_ |
| std::optional< double > | confidence_ |
| std::optional< XSDType > | xsdType_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from knowrob::Triple | |
| static bool | isBlank (std::string_view str) |
| static bool | isBlank (std::string_view str) |
A Triple with a specified string type for the triple data.
| StringType | the string type for the triple data. |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 379 of file Triple.h.
|
inlineexplicit |
Definition at line 391 of file Triple.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineoverridevirtual |
Implements knowrob::Triple.
|
inlineoverridevirtual |
Implements knowrob::Triple.
|
inlineoverridevirtual |
Implements knowrob::Triple.
Definition at line 545 of file Triple.h.
|
inlineoverridevirtual |
Implements knowrob::Triple.
Definition at line 545 of file Triple.h.
|
inlineoverridevirtual |
Implements knowrob::Triple.
Definition at line 506 of file Triple.h.
|
inlineoverridevirtual |
Implements knowrob::Triple.
Definition at line 506 of file Triple.h.
|
inlineoverridevirtual |
Reset the triple to its initial state.
Implements knowrob::Triple.
Definition at line 550 of file Triple.h.
|
inlineoverridevirtual |
Reset the triple to its initial state.
Implements knowrob::Triple.
Definition at line 550 of file Triple.h.
|
inlineprotected |
|
inlineprotected |
|
inlineoverridevirtual |
Assign a boolean value to the object of the triple.
| v | the boolean value to assign. |
Implements knowrob::Triple.
Definition at line 479 of file Triple.h.
|
inlineoverridevirtual |
Assign a boolean value to the object of the triple.
| v | the boolean value to assign. |
Implements knowrob::Triple.
Definition at line 479 of file Triple.h.
|
inlineoverridevirtual |
Assign a double value to the object of the triple.
| v | the double value to assign. |
Implements knowrob::Triple.
Definition at line 470 of file Triple.h.
|
inlineoverridevirtual |
Assign a double value to the object of the triple.
| v | the double value to assign. |
Implements knowrob::Triple.
Definition at line 470 of file Triple.h.
|
inlineoverridevirtual |
Assign a float value to the object of the triple.
| v | the float value to assign. |
Implements knowrob::Triple.
Definition at line 473 of file Triple.h.
|
inlineoverridevirtual |
Assign a float value to the object of the triple.
| v | the float value to assign. |
Implements knowrob::Triple.
Definition at line 473 of file Triple.h.
|
inlineoverridevirtual |
| graph | the graph of the triple. |
Implements knowrob::Triple.
Definition at line 497 of file Triple.h.
|
inlineoverridevirtual |
| graph | the graph of the triple. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
Assign a int value to the object of the triple.
| v | the int value to assign. |
Implements knowrob::Triple.
Definition at line 476 of file Triple.h.
|
inlineoverridevirtual |
Assign a int value to the object of the triple.
| v | the int value to assign. |
Implements knowrob::Triple.
Definition at line 476 of file Triple.h.
|
inlineoverridevirtual |
Assign a long value to the object of the triple.
| v | the long value to assign. |
Implements knowrob::Triple.
Definition at line 482 of file Triple.h.
|
inlineoverridevirtual |
Assign a long value to the object of the triple.
| v | the long value to assign. |
Implements knowrob::Triple.
Definition at line 482 of file Triple.h.
|
inlineoverridevirtual |
| str | a blank node identifier for the object of the triple. |
Implements knowrob::Triple.
Definition at line 461 of file Triple.h.
|
inlineoverridevirtual |
| str | a blank node identifier for the object of the triple. |
Implements knowrob::Triple.
Definition at line 461 of file Triple.h.
|
inlineoverridevirtual |
| object | the object of the triple. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
| object | the object of the triple. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
| perspective | the perspective of the triple. |
Implements knowrob::Triple.
Definition at line 500 of file Triple.h.
|
inlineoverridevirtual |
| perspective | the perspective of the triple. |
Implements knowrob::Triple.
Definition at line 500 of file Triple.h.
|
inlineoverridevirtual |
| predicate | the predicate of the triple. |
Implements knowrob::Triple.
Definition at line 449 of file Triple.h.
|
inlineoverridevirtual |
| predicate | the predicate of the triple. |
Implements knowrob::Triple.
Definition at line 449 of file Triple.h.
|
inlineoverridevirtual |
Assign a short value to the object of the triple.
| v | the short value to assign. |
Implements knowrob::Triple.
Definition at line 485 of file Triple.h.
|
inlineoverridevirtual |
Assign a short value to the object of the triple.
| v | the short value to assign. |
Implements knowrob::Triple.
Definition at line 485 of file Triple.h.
|
inlineoverridevirtual |
Assign a string value to the object of the triple.
| v | the string value to assign. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
Assign a string value to the object of the triple.
| v | the string value to assign. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
| subject | the subject of the triple. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
| subject | the subject of the triple. |
Implements knowrob::Triple.
|
inlineoverridevirtual |
| str | a blank node identifier for the subject of the triple. |
Implements knowrob::Triple.
Definition at line 458 of file Triple.h.
|
inlineoverridevirtual |
| str | a blank node identifier for the subject of the triple. |
Implements knowrob::Triple.
Definition at line 458 of file Triple.h.
|
inlineoverridevirtual |
Assign a unsigned int value to the object of the triple.
| v | the unsigned int value to assign. |
Implements knowrob::Triple.
Definition at line 491 of file Triple.h.
|
inlineoverridevirtual |
Assign a unsigned int value to the object of the triple.
| v | the unsigned int value to assign. |
Implements knowrob::Triple.
Definition at line 491 of file Triple.h.
|
inlineoverridevirtual |
Assign a unsigned long value to the object of the triple.
| v | the unsigned long value to assign. |
Implements knowrob::Triple.
Definition at line 488 of file Triple.h.
|
inlineoverridevirtual |
Assign a unsigned long value to the object of the triple.
| v | the unsigned long value to assign. |
Implements knowrob::Triple.
Definition at line 488 of file Triple.h.
|
inlineoverridevirtual |
Assign a unsigned short value to the object of the triple.
| v | the unsigned short value to assign. |
Implements knowrob::Triple.
Definition at line 494 of file Triple.h.
|
inlineoverridevirtual |
Assign a unsigned short value to the object of the triple.
| v | the unsigned short value to assign. |
Implements knowrob::Triple.
Definition at line 494 of file Triple.h.
|
inlineoverridevirtual |
Implements knowrob::Triple.
Definition at line 503 of file Triple.h.
|
inlineoverridevirtual |
Implements knowrob::Triple.
Definition at line 503 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a boolean.
Implements knowrob::Triple.
Definition at line 524 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a boolean.
Implements knowrob::Triple.
Definition at line 524 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a double.
Implements knowrob::Triple.
Definition at line 512 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a double.
Implements knowrob::Triple.
Definition at line 512 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a float.
Implements knowrob::Triple.
Definition at line 515 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a float.
Implements knowrob::Triple.
Definition at line 515 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a int.
Implements knowrob::Triple.
Definition at line 521 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a int.
Implements knowrob::Triple.
Definition at line 521 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a long.
Implements knowrob::Triple.
Definition at line 518 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a long.
Implements knowrob::Triple.
Definition at line 518 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a short.
Implements knowrob::Triple.
Definition at line 527 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a short.
Implements knowrob::Triple.
Definition at line 527 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a string.
Implements knowrob::Triple.
Definition at line 509 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a string.
Implements knowrob::Triple.
Definition at line 509 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a unsigned int.
Implements knowrob::Triple.
Definition at line 533 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a unsigned int.
Implements knowrob::Triple.
Definition at line 533 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a unsigned long.
Implements knowrob::Triple.
Definition at line 530 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a unsigned long.
Implements knowrob::Triple.
Definition at line 530 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a unsigned short.
Implements knowrob::Triple.
Definition at line 536 of file Triple.h.
|
inlineoverridevirtual |
Read the object part of the triple as a unsigned short.
Implements knowrob::Triple.
Definition at line 536 of file Triple.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |