Property types for Dgraph records

This topic describes the format of the property types supported by the Dgraph process of the Oracle Endeca Server and the Data Ingest Web Service.

The following table lists the property types that are used by the Dgraph process of the Oracle Endeca Server to create standard attributes:
Dgraph property name Property type
mdex:string Represents XML-valid character strings.
mdex:int Represents a 32-bit signed integer.
mdex:long Represents a 64-bit signed integer.
mdex:double Represents a floating point.
mdex:boolean Represents a Boolean.
mdex:time Represents the time of day to a resolution of milliseconds.
mdex:dateTime Represents the date and time to a resolution of milliseconds.
mdex:duration Represents a length of time with a resolution of milliseconds.
mdex:geocode Represents latitude and longitude pairs.

The type for properties is specified in the type attribute. The default type of created standard attributes is mdex:string if not otherwise specified. Assignments for an existing standard attribute that specify a type different from that of the associated standard attribute will succeed or fail as per the underlying put-record functionality.

Errors from incorrect property values

You must ensure that you specify the appropriate value type for each property type. For example, attempting to assign a double value (such as 19.99) to an mdex:int property will return an ingestFault indication a parsing error:
<detail>
  <ingest:ingestFault xmlns:ingest="http://www.endeca.com/MDEX/ingest/1/0">
     <ingest:errorDetail>Error applying updates: Unable to parse 
       property value "19.99" for property "NumInStock" with 
       type "mdex:int" on record FactSalesD:569
     </ingest:errorDetail>
  </ingest:ingestFault>
</detail>

The "Unable to parse property value" error should be returned for any mismatched property value, including using an incorrect case for Boolean values (for example, specifying "FALSE" instead of "false").