The latest version of the specification is version v2.

Attribute

An attribute defines the characteristics of a value part of a blob of data. It is the building block for the schema.

type Attribute =
  { id : Name
  , datatype : Datatype
  , title : Maybe String
  , description : Maybe Text
  }

Attributes

Id

The id, uniquely identifies the attribute. Once an attribute exists in a schema, it can't change its identifier.

Datatype

The datatype (primitive and cardinality) that applies to any value for this attribute. Once defined, it can't be changed.

Title

The title is the human readable version of the identifier.

Description

  • Type: Optional Text.

The description is a formatted text to describe the purpose of the attribute.

© Crown copyright released under the Open Government Licence.