TerminusDB Data Types

Open inAnthropic

TerminusCMS is now DFRNT Hub TerminusCMS has been renamed to DFRNT Hub. All features described on this page are available at dfrnt.com. The TerminusDB open source database remains unchanged.

TypeW3C specDescription
xsd:stringW3CCharacter strings (but not all Unicode character strings)
xsd:booleanW3Ctrue, false
xsd:decimalW3CEquivalent to xsd:double
xsd:integerW3CArbitrary-size integer numbers

IEEE floating-point numbers

TypeW3C specDescription
xsd:doubleW3C64-bit floating point numbers incl. ∓Inf, ∓0, NaN
xsd:floatW3C32-bit floating point numbers incl. ∓Inf, ∓0, NaN

Time and date

TypeW3C specDescription
xsd:dateW3CDates (yyyy-mm-dd) with or without timezone
xsd:timeW3CTimes (hh:mm:ss.sss) with or without timezone
xsd:dateTimeW3CDate and time with or without timezone
xsd:dateTimeStampW3CDate and time with required timezone

Recurring and partial dates

TypeW3C specDescription
xsd:gYearW3CGregorian calendar year
xsd:gMonthW3CGregorian calendar month
xsd:gDayW3CGregorian calendar day of the month
xsd:gYearMonthW3CGregorian calendar year and month
xsd:gMonthDayW3CGregorian calendar month and day
xsd:durationW3CDuration of time
xsd:yearMonthDurationW3CDuration of time (months and years only)
xsd:dayTimeDurationW3CDuration of time (days, hours, minutes, seconds only)

Limited-range integer numbers

TypeW3C specDescription
xsd:byteW3C-128…+127 (8 bit)
xsd:shortW3C-32768…+32767 (16 bit)
xsd:intW3C-2147483648…+2147483647 (32 bit)
xsd:longW3C-9223372036854775808…+9223372036854775807 (64 bit)
xsd:unsignedByteW3C0…255 (8 bit)
xsd:unsignedShortW3C0…65535 (16 bit)
xsd:unsignedIntW3C0…4294967295 (32 bit)
xsd:unsignedLongW3C0…18446744073709551615 (64 bit)
xsd:positiveIntegerW3CInteger numbers >0
xsd:nonNegativeIntegerW3CInteger numbers ≥0
xsd:negativeIntegerW3CInteger numbers <0
xsd:nonPositiveIntegerW3CInteger numbers ≤0

Encoded binary data

TypeW3C specDescription
xsd:hexBinaryW3CHex-encoded binary data
xsd:base64BinaryW3CBase64-encoded binary data

Miscellaneous XSD types

TypeW3C specDescription
xsd:anyURIW3CAbsolute or relative URIs and IRIs
xsd:languageW3CLanguage tags per BCP47
xsd:normalizedStringW3CWhitespace-normalized strings
xsd:tokenW3CTokenized strings
xsd:NMTOKENW3CXML NMTOKENs
xsd:NameW3CXML Names
xsd:NCNameW3CXML NCNames

Was this helpful?