knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <XSDAtomic.h>
Public Member Functions | |
XSDAtomic (XSDType xsdType) | |
std::string_view | xsdTypeIRI () const |
XSDType | xsdType () const |
XSDAtomic (XSDType xsdType) | |
std::string_view | xsdTypeIRI () const |
XSDType | xsdType () const |
Public Member Functions inherited from knowrob::RDFNode | |
RDFNode (RDFNodeType rdfNodeType) | |
auto | rdfNodeType () const |
RDFNode (RDFNodeType rdfNodeType) | |
auto | rdfNodeType () const |
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 |
virtual std::string_view | stringForm () const =0 |
const std::set< std::string_view > & | variables () const final |
void | write (std::ostream &os) const override |
Atomic (AtomicType atomicType) | |
~Atomic () override=default | |
bool | isSameAtomic (const Atomic &other) const |
AtomicType | atomicType () const |
size_t | hashOfAtomic () const |
virtual std::string_view | stringForm () const =0 |
const std::set< std::string_view > & | variables () const final |
void | write (std::ostream &os) const override |
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 |
Static Public Member Functions | |
static std::shared_ptr< XSDAtomic > | create (std::string_view lexicalForm, std::string_view xsdTypeIRI) |
static std::shared_ptr< XSDAtomic > | create (std::string_view lexicalForm, std::string_view xsdTypeIRI) |
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) |
Protected Attributes | |
XSDType | xsdType_ |
Protected Attributes inherited from knowrob::RDFNode | |
const RDFNodeType | rdfNodeType_ |
Protected Attributes inherited from knowrob::Atomic | |
const AtomicType | atomicType_ |
Protected Attributes inherited from knowrob::Term | |
const TermType | termType_ |
bool | isBlank_ = false |
bool | isIRI_ = false |
Additional Inherited Members | |
Static Protected Attributes inherited from knowrob::Term | |
static const std::set< std::string_view > | noVariables_ = {} |
An atomic RDF node with an XSD datatype
Definition at line 18 of file XSDAtomic.h.
|
inlineexplicit |
Definition at line 20 of file XSDAtomic.h.
|
inlineexplicit |
Definition at line 20 of file XSDAtomic.h.
|
static |
Create an XSDAtomic from a lexical form and an XSD datatype IRI
lexicalForm | the lexical form of the RDF literal |
xsdTypeIRI | the IRI of the XSD datatype |
Definition at line 17 of file XSDAtomic.cpp.
|
static |
|
inline |
The XSD datatype determines how the lexical form maps to a literal value
Definition at line 43 of file XSDAtomic.h.
|
inline |
The XSD datatype determines how the lexical form maps to a literal value
Definition at line 43 of file XSDAtomic.h.
std::string_view knowrob::XSDAtomic::xsdTypeIRI | ( | ) | const |
The IRI of the XSD datatype
Definition at line 90 of file XSDAtomic.cpp.
std::string_view knowrob::XSDAtomic::xsdTypeIRI | ( | ) | const |
The IRI of the XSD datatype
|
protected |
Definition at line 46 of file XSDAtomic.h.