TerminusDB Data Types
Core data types
Type | W3C specification | Description |
| Character strings (but not all Unicode character strings) | |
| true, false | |
| Equivalent to | |
| Arbitrary-size integer numbers |
IEEE floating-point numbers
Type | W3C specification | Description |
| 64-bit floating point numbers incl. ∓Inf, ∓0, NaN | |
| 32-bit floating point numbers incl. ∓Inf, ∓0, NaN |
Time and date
Type | W3C specification | Description |
| Dates (yyyy-mm-dd) with or without timezone | |
| Times ( | |
| Date and time with or without timezone | |
| - | Date and time with required timezone |
Recurring and partial dates
Type | W3C specification | Description |
| Gregorian calendar year | |
| Gregorian calendar month | |
| Gregorian calendar day of the month | |
| Gregorian calendar year and month | |
| Gregorian calendar month and day | |
| Duration of time | |
| - | Duration of time (months and years only) |
| - | Duration of time (days, hours, minutes, seconds only) |
Limited-range integer numbers
Type | W3C specification | Description |
| -128...+127 (8 bit) | |
| -32768...+32767 (16 bit) | |
| -2147483648...+2147483647 (32 bit) | |
| -9223372036854775808...+9223372036854775807 (64 bit) | |
| 0...255 (8 bit) | |
| 0...65535 (16 bit) | |
| 0...4294967295 (32 bit) | |
| 0...18446744073709551615 (64 bit) | |
| Integer numbers >0 | |
| Integer numbers ≥0 | |
| Integer numbers <0 | |
| Integer numbers ≤0 |
Encoded binary data
Type | W3C specification | Description |
| Hex-encoded binary data | |
| Base64-encoded binary data |
Miscellaneous XSD types
Last updated