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


Public Member Functions | |
| IRIAtom (std::string_view stringForm) | |
| PredicatePtr | operator() (const TermPtr &s, const TermPtr &o) const |
| PredicatePtr | operator() (const TermPtr &s) const |
| void | write (std::ostream &os) const override |
| IRIAtom (std::string_view stringForm) | |
| PredicatePtr | operator() (const TermPtr &s, const TermPtr &o) const |
| PredicatePtr | operator() (const TermPtr &s) const |
| void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Atom | |
| Atom (std::string_view stringForm, AtomType atomType=AtomType::REGULAR) | |
| bool | isSameAtom (const Atom &other) const |
| AtomType | atomType () const |
| std::string_view | stringForm () const final |
| Atom (std::string_view stringForm, AtomType atomType=AtomType::REGULAR) | |
| bool | isSameAtom (const Atom &other) const |
| AtomType | atomType () const |
| std::string_view | stringForm () const final |
Public Member Functions inherited from knowrob::Atomic | |
| Atomic (AtomicType atomicType) | |
| ~Atomic () override=default | |
| bool | isSameAtomic (const Atomic &other) const |
| AtomicType | atomicType () const |
| size_t | hashOfAtomic () const |
| const std::set< std::string_view > & | variables () const final |
| Atomic (AtomicType atomicType) | |
| ~Atomic () override=default | |
| bool | isSameAtomic (const Atomic &other) const |
| AtomicType | atomicType () const |
| size_t | hashOfAtomic () const |
| const std::set< std::string_view > & | variables () const final |
Public Member Functions inherited from knowrob::Term | |
| Term (TermType termType) | |
| ~Term () override=default | |
| bool | operator== (const Term &other) const |
| bool | operator!= (const Term &other) const |
| TermType | termType () const |
| bool | isGround () const |
| bool | isAtomic () const |
| bool | isAtom () const |
| bool | isVariable () const |
| bool | isFunction () const |
| bool | isNumeric () const |
| bool | isString () const |
| bool | isIRI () const |
| bool | isBlank () const |
| size_t | hash () const |
| Term (TermType termType) | |
| ~Term () override=default | |
| bool | operator== (const Term &other) const |
| bool | operator!= (const Term &other) const |
| TermType | termType () const |
| bool | isGround () const |
| bool | isAtomic () const |
| bool | isAtom () const |
| bool | isVariable () const |
| bool | isFunction () const |
| bool | isNumeric () const |
| bool | isString () const |
| bool | isIRI () const |
| bool | isBlank () const |
| size_t | hash () const |
Public Member Functions inherited from knowrob::Printable | |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
Public Member Functions inherited from knowrob::RDFNode | |
| RDFNode (RDFNodeType rdfNodeType) | |
| auto | rdfNodeType () const |
| RDFNode (RDFNodeType rdfNodeType) | |
| auto | rdfNodeType () const |
Static Public Member Functions | |
| static std::shared_ptr< IRIAtom > | Tabled (std::string_view stringForm) |
| static std::shared_ptr< IRIAtom > | Tabled (std::string_view stringForm) |
Static Public Member Functions inherited from knowrob::Atom | |
| static std::shared_ptr< knowrob::Atom > | Tabled (std::string_view stringForm) |
| static std::shared_ptr< knowrob::Atom > | Tabled (std::string_view stringForm) |
Static Public Member Functions inherited from knowrob::Atomic | |
| static std::shared_ptr< Atomic > | makeTripleValue (const Triple &triple) |
| static std::shared_ptr< Atomic > | makeTripleValue (const Triple &triple) |
Additional Inherited Members | |
Protected Types inherited from knowrob::Atom | |
| using | AtomTable = std::map< std::string, std::optional< std::weak_ptr< Atom > >, std::less<> > |
| using | AtomTable = std::map< std::string, std::optional< std::weak_ptr< Atom > >, std::less<> > |
Static Protected Member Functions inherited from knowrob::Atom | |
| static AtomTable & | table () |
| static AtomTable & | table () |
Protected Attributes inherited from knowrob::Atom | |
| std::string_view | stringForm_ |
| const AtomType | atomType_ |
Protected Attributes inherited from knowrob::Atomic | |
| const AtomicType | atomicType_ |
Protected Attributes inherited from knowrob::Term | |
| const TermType | termType_ |
| bool | isBlank_ = false |
| bool | isIRI_ = false |
Protected Attributes inherited from knowrob::RDFNode | |
| const RDFNodeType | rdfNodeType_ |
Static Protected Attributes inherited from knowrob::Term | |
| static const std::set< std::string_view > | noVariables_ = {} |
An IRI (Internationalized Resource Identifier) within an RDF graph is a Unicode string that conforms to the syntax defined in RFC 3987.
|
inlineexplicit |
Constructs an IRI atom from a string.
| stringForm | the string form of the IRI |
Definition at line 24 of file IRIAtom.h.
|
inlineexplicit |
Constructs an IRI atom from a string.
| stringForm | the string form of the IRI |
| PredicatePtr IRIAtom::operator() | ( | const TermPtr & | s | ) | const |
Constructs a predicate from this IRI atom and the given term.
| s | the subject term |
Definition at line 20 of file IRIAtom.cpp.
| PredicatePtr knowrob::IRIAtom::operator() | ( | const TermPtr & | s | ) | const |
Constructs a predicate from this IRI atom and the given term.
| s | the subject term |
| PredicatePtr IRIAtom::operator() | ( | const TermPtr & | s, |
| const TermPtr & | o | ||
| ) | const |
Constructs a predicate from this IRI atom and the given terms.
| s | the subject term |
| o | the object term |
Definition at line 15 of file IRIAtom.cpp.
| PredicatePtr knowrob::IRIAtom::operator() | ( | const TermPtr & | s, |
| const TermPtr & | o | ||
| ) | const |
Constructs a predicate from this IRI atom and the given terms.
| s | the subject term |
| o | the object term |
|
static |
| stringForm | the string form of the IRI |
Definition at line 25 of file IRIAtom.cpp.
|
static |
| stringForm | the string form of the IRI |
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Reimplemented from knowrob::Atom.
Definition at line 46 of file IRIAtom.cpp.
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Reimplemented from knowrob::Atom.