knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::xsd Namespace Reference

Functions

bool isNumericType (std::string_view iri)
 
bool isDoubleType (std::string_view iri)
 
bool isIntegerType (std::string_view iri)
 
bool isStringType (std::string_view iri)
 
bool isBooleanType (std::string_view iri)
 
bool isDateType (std::string_view iri)
 

Variables

constexpr std::string_view prefix = "http://www.w3.org/2001/XMLSchema#"
 
const IRIAtomPtr IRI_anyURI = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#anyURI")
 
const IRIAtomPtr IRI_string = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#string")
 
const IRIAtomPtr IRI_token = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#token")
 
const IRIAtomPtr IRI_normalizedString = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#normalizedString")
 
const IRIAtomPtr IRI_language = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#language")
 
const IRIAtomPtr IRI_int = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#int")
 
const IRIAtomPtr IRI_integer = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#integer")
 
const IRIAtomPtr IRI_positiveInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#positiveInteger")
 
const IRIAtomPtr IRI_negativeInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#negativeInteger")
 
const IRIAtomPtr IRI_nonNegativeInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#nonNegativeInteger")
 
const IRIAtomPtr IRI_nonPositiveInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#nonPositiveInteger")
 
const IRIAtomPtr IRI_unsignedInt = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedInt")
 
const IRIAtomPtr IRI_long = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#long")
 
const IRIAtomPtr IRI_unsignedLong = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedLong")
 
const IRIAtomPtr IRI_short = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#short")
 
const IRIAtomPtr IRI_unsignedShort = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedShort")
 
const IRIAtomPtr IRI_byte = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#byte")
 
const IRIAtomPtr IRI_unsignedByte = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedByte")
 
const IRIAtomPtr IRI_boolean = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#boolean")
 
const IRIAtomPtr IRI_decimal = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#decimal")
 
const IRIAtomPtr IRI_double = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#double")
 
const IRIAtomPtr IRI_float = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#float")
 
const IRIAtomPtr IRI_date = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#date")
 
const IRIAtomPtr IRI_dateTime = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#dateTime")
 
const IRIAtomPtr IRI_duration = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#duration")
 
const IRIAtomPtr IRI_gDay = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gDay")
 
const IRIAtomPtr IRI_gMonth = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gMonth")
 
const IRIAtomPtr IRI_gMonthDay = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gMonthDay")
 
const IRIAtomPtr IRI_gYear = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gYear")
 
const IRIAtomPtr IRI_gYearMonth = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gYearMonth")
 
const IRIAtomPtr IRI_time = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#time")
 

Function Documentation

◆ isBooleanType()

bool knowrob::xsd::isBooleanType ( std::string_view  iri)
Parameters
irithe IRI of a XSD type
Returns
true if iri is a boolean type

Definition at line 94 of file xsd.cpp.

95  {
96  return XSD::isBooleanType(iri);
97  }
StringRule & iri()
Definition: strings.cpp:49
bool isBooleanType(std::string_view iri)
Definition: xsd.cpp:94

◆ isDateType()

bool knowrob::xsd::isDateType ( std::string_view  iri)
Parameters
irithe IRI of a XSD type
Returns
true if iri is a date type

Definition at line 99 of file xsd.cpp.

100  {
101  return XSD::isDateType(iri);
102  }
bool isDateType(std::string_view iri)
Definition: xsd.cpp:99

◆ isDoubleType()

bool knowrob::xsd::isDoubleType ( std::string_view  iri)
Parameters
irithe IRI of a XSD type
Returns
true if iri is a integer type

Definition at line 89 of file xsd.cpp.

90  {
91  return XSD::isDoubleType(iri);
92  }
bool isDoubleType(std::string_view iri)
Definition: xsd.cpp:89

◆ isIntegerType()

bool knowrob::xsd::isIntegerType ( std::string_view  iri)
Parameters
irithe IRI of a XSD type
Returns
true if iri is a integer type

Definition at line 84 of file xsd.cpp.

85  {
86  return XSD::isIntegerType(iri);
87  }
bool isIntegerType(std::string_view iri)
Definition: xsd.cpp:84

◆ isNumericType()

bool knowrob::xsd::isNumericType ( std::string_view  iri)
Parameters
irithe IRI of a XSD type
Returns
true if iri is a numeric type

Definition at line 79 of file xsd.cpp.

80  {
81  return isDoubleType(iri) || isIntegerType(iri);
82  }

◆ isStringType()

bool knowrob::xsd::isStringType ( std::string_view  iri)
Parameters
irithe IRI of a XSD type
Returns
true if iri is a string type

Definition at line 74 of file xsd.cpp.

75  {
76  return XSD::isStringType(iri);
77  }
bool isStringType(std::string_view iri)
Definition: xsd.cpp:74

Variable Documentation

◆ IRI_anyURI

const IRIAtomPtr knowrob::xsd::IRI_anyURI = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#anyURI")

Definition at line 15 of file xsd.h.

◆ IRI_boolean

const IRIAtomPtr knowrob::xsd::IRI_boolean = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#boolean")

Definition at line 34 of file xsd.h.

◆ IRI_byte

const IRIAtomPtr knowrob::xsd::IRI_byte = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#byte")

Definition at line 32 of file xsd.h.

◆ IRI_date

const IRIAtomPtr knowrob::xsd::IRI_date = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#date")

Definition at line 40 of file xsd.h.

◆ IRI_dateTime

const IRIAtomPtr knowrob::xsd::IRI_dateTime = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#dateTime")

Definition at line 41 of file xsd.h.

◆ IRI_decimal

const IRIAtomPtr knowrob::xsd::IRI_decimal = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#decimal")

Definition at line 36 of file xsd.h.

◆ IRI_double

const IRIAtomPtr knowrob::xsd::IRI_double = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#double")

Definition at line 37 of file xsd.h.

◆ IRI_duration

const IRIAtomPtr knowrob::xsd::IRI_duration = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#duration")

Definition at line 42 of file xsd.h.

◆ IRI_float

const IRIAtomPtr knowrob::xsd::IRI_float = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#float")

Definition at line 38 of file xsd.h.

◆ IRI_gDay

const IRIAtomPtr knowrob::xsd::IRI_gDay = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gDay")

Definition at line 43 of file xsd.h.

◆ IRI_gMonth

const IRIAtomPtr knowrob::xsd::IRI_gMonth = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gMonth")

Definition at line 44 of file xsd.h.

◆ IRI_gMonthDay

const IRIAtomPtr knowrob::xsd::IRI_gMonthDay = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gMonthDay")

Definition at line 45 of file xsd.h.

◆ IRI_gYear

const IRIAtomPtr knowrob::xsd::IRI_gYear = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gYear")

Definition at line 46 of file xsd.h.

◆ IRI_gYearMonth

const IRIAtomPtr knowrob::xsd::IRI_gYearMonth = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#gYearMonth")

Definition at line 47 of file xsd.h.

◆ IRI_int

const IRIAtomPtr knowrob::xsd::IRI_int = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#int")

Definition at line 21 of file xsd.h.

◆ IRI_integer

const IRIAtomPtr knowrob::xsd::IRI_integer = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#integer")

Definition at line 22 of file xsd.h.

◆ IRI_language

const IRIAtomPtr knowrob::xsd::IRI_language = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#language")

Definition at line 19 of file xsd.h.

◆ IRI_long

const IRIAtomPtr knowrob::xsd::IRI_long = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#long")

Definition at line 28 of file xsd.h.

◆ IRI_negativeInteger

const IRIAtomPtr knowrob::xsd::IRI_negativeInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#negativeInteger")

Definition at line 24 of file xsd.h.

◆ IRI_nonNegativeInteger

const IRIAtomPtr knowrob::xsd::IRI_nonNegativeInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#nonNegativeInteger")

Definition at line 25 of file xsd.h.

◆ IRI_nonPositiveInteger

const IRIAtomPtr knowrob::xsd::IRI_nonPositiveInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#nonPositiveInteger")

Definition at line 26 of file xsd.h.

◆ IRI_normalizedString

const IRIAtomPtr knowrob::xsd::IRI_normalizedString = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#normalizedString")

Definition at line 18 of file xsd.h.

◆ IRI_positiveInteger

const IRIAtomPtr knowrob::xsd::IRI_positiveInteger = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#positiveInteger")

Definition at line 23 of file xsd.h.

◆ IRI_short

const IRIAtomPtr knowrob::xsd::IRI_short = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#short")

Definition at line 30 of file xsd.h.

◆ IRI_string

const IRIAtomPtr knowrob::xsd::IRI_string = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#string")

Definition at line 16 of file xsd.h.

◆ IRI_time

const IRIAtomPtr knowrob::xsd::IRI_time = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#time")

Definition at line 48 of file xsd.h.

◆ IRI_token

const IRIAtomPtr knowrob::xsd::IRI_token = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#token")

Definition at line 17 of file xsd.h.

◆ IRI_unsignedByte

const IRIAtomPtr knowrob::xsd::IRI_unsignedByte = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedByte")

Definition at line 33 of file xsd.h.

◆ IRI_unsignedInt

const IRIAtomPtr knowrob::xsd::IRI_unsignedInt = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedInt")

Definition at line 27 of file xsd.h.

◆ IRI_unsignedLong

const IRIAtomPtr knowrob::xsd::IRI_unsignedLong = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedLong")

Definition at line 29 of file xsd.h.

◆ IRI_unsignedShort

const IRIAtomPtr knowrob::xsd::IRI_unsignedShort = IRIAtom::Tabled("http://www.w3.org/2001/XMLSchema#unsignedShort")

Definition at line 31 of file xsd.h.

◆ prefix

constexpr std::string_view knowrob::xsd::prefix = "http://www.w3.org/2001/XMLSchema#"
constexpr

Definition at line 13 of file xsd.h.