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 JSON Schema Draft 2020-12.
Language
Section titled “Language”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.
Descriptor
Section titled “Descriptor”A Fairspec Data Schema is a JSON resource that MUST be an object compatible with the Data Schema structure outlined below.
Data Schema
Section titled “Data Schema”A top-level descriptor object defining a schema of structured data resources. It MIGHT have the following properties (all optional unless otherwise stated):
$schema
Section titled “$schema”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"}<jsonSchema>
Section titled “<jsonSchema>”Dataset supports all the properties defined in Json Schema Draft 2020-12. For example:
{ "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } },}Common
Section titled “Common”Common properties shared by multiple entities in the descriptor.
External Path
Section titled “External Path”It MUST be a string representing an HTTP or HTTPS URL to a remote file.
For example:
{ "data": "https://example.com/datasets/measurements.csv"}Extension
Section titled “Extension”Fairspec Data Schema does not support extension.