Data Type Handling

AnzoGraph DB natively supports the following RDF data types. Literal values with types that are not included in the table below are treated as "user-defined" types in AnzoGraph DB. User-defined types are stored as strings and can be cast to supported types as needed to perform analytic operations.

RDF Data Types Description
xsd:boolean For true or false values. Regardless of whether the input value is "true" or "false" or "0" or "1," AnzoGraph DB stores and displays "t" for true and "f" for false.

To use 1 and 0 for true and false, you must specify the xsd:boolean type in the load file. Otherwise the system assumes these values are integers.

xsd:byte For 1-byte integers from -128 to 127.
xsd:date For date values that follow a format such as YYYY-MM-DD. You can also include timezone indicators in xsd:date values.
xsd:dateTime 8-byte date and time values that follow a format such as YYYY-MM-DDThh:mm:ss. You can also include timezone indicators in xsd:dateTime values.
xsd:double 8-byte double floating point values. Note: Decimal values are converted to xsd:double in AnzoGraph DB.
xsd:duration Duration of time expressed as a number of years, months, days, hours, minutes, and seconds in a format such as PnYnMnDTnHnMnS.
xsd:float 4-byte floating point values with potential decimal places.
xsd:int 4-byte integers for values from -2,147,483,648 to 2,147,483,647.
xsd:long 8-byte integers for values from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
xsd:short 2-byte integers for values from -32,768 to 32,767.
xsd:string Character values of varying length, up to 2 MB in size. 2 MB holds approximately 2 million characters.

To load data that contains strings that are longer than 2 MB, enable the truncate_clob setting. When this setting is enabled, strings that are larger than 2 MB are automatically truncated to 2 MB.

xsd:time Time values that follow a format such as hh:mm:ss.