Skip to content

Fairspec Data Schema

Authors Evgeny Karev
Profile https://fairspec.org/profiles/latest/data-schema.json

Fairspec Data Schema is a simple JSON-based format that defines Data Schema to describe a class of structured data resources. It is fully compatible with the JSON Schema standard.

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119.

A Fairspec Data Schema is a JSON resource that MUST be an object compatible with the Data Schema structure outlined below.

A top-level descriptor object defining a schema of structured data resources. It MIGHT have the following properties (all optional unless otherwise stated):

External Path to one of the officially published Fairspec Data Schema profiles or https://json-schema.org/draft/2020-12/schema with default value https://fairspec.org/profiles/latest/data-schema.json.

For example for version X.Y.Z of the profile:

{
"$schema": "https://fairspec.org/profiles/X.Y.Z/data-schema.json"
}

Dataset supports all the properties defined in Json Schema Draft 2020-12. For example:

{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "integer"
}
},
}

Common properties shared by multiple entities in the descriptor.

It MUST be a string representing an HTTP or HTTPS URL to a remote file.

For example:

{
"data": "https://example.com/datasets/measurements.csv"
}

Fairspec Data Schema does not support extension.