Enum rdf_store_rs::DataType
source · #[repr(u8)]pub enum DataType {
Show 36 variants
UnboundValue = 0,
BlankNode = 1,
IriReference = 2,
Literal = 3,
AnyUri = 4,
String = 5,
PlainLiteral = 6,
Boolean = 7,
DateTime = 8,
DateTimeStamp = 9,
Time = 10,
Date = 11,
YearMonth = 12,
Year = 13,
MonthDay = 14,
Day = 15,
Month = 16,
Duration = 17,
YearMonthDuration = 18,
DayTimeDuration = 19,
Double = 20,
Float = 21,
Decimal = 22,
Integer = 23,
NonNegativeInteger = 24,
NonPositiveInteger = 25,
NegativeInteger = 26,
PositiveInteger = 27,
Long = 28,
Int = 29,
Short = 30,
Byte = 31,
UnsignedLong = 32,
UnsignedInt = 33,
UnsignedShort = 34,
UnsignedByte = 35,
}
Expand description
The XSD DataType of a given Literal
.
See also https://docs.oxfordsemantic.tech/_javadoc/tech/oxfordsemantic/jrdfox/logic/Datatype.html.
Variants§
UnboundValue = 0
INVALID_DATATYPE
BlankNode = 1
BLANK_NODE
IriReference = 2
IRI_REFERENCE
Literal = 3
RDFS_LITERAL
AnyUri = 4
XSD_ANY_URI
String = 5
XSD_STRING
PlainLiteral = 6
RDF_PLAIN_LITERAL
Boolean = 7
XSD_BOOLEAN
DateTime = 8
XSD_DATE_TIME
DateTimeStamp = 9
XSD_DATE_TIME_STAMP
Time = 10
XSD_TIME
Date = 11
XSD_DATE
YearMonth = 12
XSD_G_YEAR_MONTH
Year = 13
XSD_G_YEAR
MonthDay = 14
XSD_G_MONTH_DAY
Day = 15
XSD_G_DAY
Month = 16
XSD_G_MONTH
Duration = 17
XSD_DURATION
YearMonthDuration = 18
XSD_YEAR_MONTH_DURATION
DayTimeDuration = 19
XSD_DAY_TIME_DURATION
Double = 20
XSD_DOUBLE
Float = 21
XSD_FLOAT
Decimal = 22
XSD_DECIMAL
Integer = 23
XSD_INTEGER
NonNegativeInteger = 24
XSD_NON_NEGATIVE_INTEGER
NonPositiveInteger = 25
XSD_NON_POSITIVE_INTEGER
NegativeInteger = 26
XSD_NEGATIVE_INTEGER
PositiveInteger = 27
XSD_POSITIVE_INTEGER
Long = 28
XSD_LONG
Int = 29
XSD_INT
Short = 30
XSD_SHORT
Byte = 31
XSD_BYTE
UnsignedLong = 32
XSD_UNSIGNED_LONG
UnsignedInt = 33
XSD_UNSIGNED_INT
UnsignedShort = 34
XSD_UNSIGNED_SHORT
UnsignedByte = 35
XSD_UNSIGNED_BYTE
Implementations§
source§impl DataType
impl DataType
pub fn from_datatype_id(data_type_id: u8) -> Result<DataType, RDFStoreError>
pub fn from_xsd_iri(iri: &str) -> Result<Self, RDFStoreError>
pub fn as_xsd_iri_str(&self) -> &'static str
pub fn is_string(&self) -> bool
pub fn is_iri(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn is_date(&self) -> bool
pub fn is_date_time(&self) -> bool
pub fn is_decimal(&self) -> bool
pub fn is_date_time_stamp(&self) -> bool
pub fn is_duration(&self) -> bool
pub fn is_signed_integer(&self) -> bool
pub fn is_unsigned_integer(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_blank_node(&self) -> bool
Trait Implementations§
source§impl PartialEq for DataType
impl PartialEq for DataType
impl Copy for DataType
impl Eq for DataType
impl StructuralEq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more