IoticAgent.Datatypes module

Constants to hide XSD Datatypes used by Point Values and Properties These help to describe the data in a feed so the receiving Thing can know what kind of data to expect

See also http://www.w3.org/TR/xmlschema-2/#built-in-datatypes

IoticAgent.Datatypes.BASE64 = 'base64Binary'

Represents a sequence of binary octets (bytes) encoded according to RFC 2045, the standard defining the MIME types (look under “6.8 Base64 Content-Transfer-Encoding”).

IoticAgent.Datatypes.BOOLEAN = 'boolean'

A Boolean true or false value. Representations of true are “true” and “1”; false is denoted as “false” or “0”.

IoticAgent.Datatypes.BYTE = 'byte'

A signed 8-bit integer in the range [-128 -> +127]. Derived from the short datatype.

IoticAgent.Datatypes.DATE = 'date'

Represents a specific date. The syntax is the same as that for the date part of dateTime, with an optional time zone indicator. Example: “1889-09-24”.

IoticAgent.Datatypes.DATETIME = 'dateTime'

ss followed by an optional time-zone suffix.

YYYY is the year, MM is the month number, DD is the day number, hh the hour in 24-hour format, mm the minute, and ss the second (a decimal and fraction are allowed for the seconds part).

The optional zone suffix is either “Z” for Universal Coordinated Time (UTC), or a time offset of the form “[+|-]hh:mm”, giving the difference between UTC and local time in hours and minutes.

Example: “2004-10-31T21:40:35.5-07:00” is a time on Halloween 2004 in Mountain Standard time. The equivalent UTC would be “2004-11-01T04:40:35.5Z”.

Type:Represents a specific instant of time. It has the form YYYY-MM-DDThh
Type:mm
IoticAgent.Datatypes.DECIMAL = 'decimal'

Any base-10 fixed-point number. There must be at least one digit to the left of the decimal point, and a leading “+” or “-” sign is allowed. Examples: “42”, “-3.14159”, “+0.004”.

IoticAgent.Datatypes.DOUBLE = 'double'

A 64-bit floating-point decimal number as specified in the IEEE 754-1985 standard. The external form is the same as the float datatype.

IoticAgent.Datatypes.FLOAT = 'float'

A 32-bit floating-point decimal number as specified in the IEEE 754-1985 standard. Allowable values are the same as in the decimal type, optionally followed by an exponent, or one of the special values “INF” (positive infinity), “-INF” (negative infinity), or “NaN” (not a number).

The exponent starts with either “e” or “E”, optionally followed by a sign, and one or more digits.

Example: “6.0235e-23”.

IoticAgent.Datatypes.INT = 'int'

Represents a 32-bit signed integer in the range [-2,147,483,648, 2,147,483,647]. Derived from the long datatype.

IoticAgent.Datatypes.INTEGER = 'integer'

Represents a signed integer. Values may begin with an optional “+” or “-” sign. Derived from the decimal datatype.

IoticAgent.Datatypes.IRI = 'IRI'

Only for use with property API calls. Used to handle properties which require an IRI (URIRef) value.

IoticAgent.Datatypes.LONG = 'long'

A signed, extended-precision integer; at least 18 digits are guaranteed. Derived from the integer datatype.

IoticAgent.Datatypes.STRING = 'string'

Any sequence of zero or more characters.

IoticAgent.Datatypes.TIME = 'time'

A moment of time that repeats every day. The syntax is the same as that for dateTime, omitting everything up to and including the separator “T”. Examples: “00:00:00” is midnight, and “13:04:00” is an hour and four minutes after noon.

IoticAgent.Datatypes.UNSIGNED_BYTE = 'unsignedByte'

An unsigned 8-bit integer in the range [0, 255]. Derived from the unsignedShort datatype.

IoticAgent.Datatypes.URI = 'anyURI'

The data must conform to the syntax of a Uniform Resource Identifier (URI), as defined in RFC 2396 as amended by RFC 2732. Example: “http://www.nmt.edu/tcc/” is the URI for the New Mexico Tech Computer Center’s index page.