Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

SourceRelease

Source schemas/json/source-release.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Mappings to open standards
  5. Schema
FieldValue
Identifierurn:obsp:schema:v3.1:sourcerelease
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsAdmit

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
sourceReleaseUniyesreference
sourceUniyesreference
distributionRefyesstring
providerReleaseMarkernostring | null
etagnostring | null
contentDigestyesreference
contentLengthyesinteger
mediaTypeyesstring
encodingnostring | null
sourceTimenostring | null
acquiredAtyesreference
recordedAtyesreference
correctionStateyesenumeration
rightsStateyesenumeration
supersedesnostring | null
correctionOfnostring | null
storageObjectRefnostring
evidenceRefsnoarray
claimyesstring
extensionsnoreference

Positive fixtures

  • source-release.valid.json

Negative fixtures

  • source-release.missing-digest.json: required at /: 'contentDigest' is a required property

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-1 Identifier and artifact catalog (UNI) (relation REL-NS-1)
  • maps to DataCite metadata and DOIs (relation EXT-DATACITE)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:sourcerelease",
  "title": "SourceRelease",
  "type": "object",
  "required": [
    "schemaVersion",
    "sourceReleaseUni",
    "sourceUni",
    "distributionRef",
    "contentDigest",
    "contentLength",
    "mediaType",
    "acquiredAt",
    "recordedAt",
    "correctionState",
    "rightsState",
    "claim"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "sourceReleaseUni": {
      "$ref": "#/$defs/Uni"
    },
    "sourceUni": {
      "$ref": "#/$defs/Uni"
    },
    "distributionRef": {
      "type": "string",
      "minLength": 1
    },
    "providerReleaseMarker": {
      "type": [
        "string",
        "null"
      ]
    },
    "etag": {
      "type": [
        "string",
        "null"
      ]
    },
    "contentDigest": {
      "$ref": "#/$defs/Digest"
    },
    "contentLength": {
      "type": "integer",
      "minimum": 0
    },
    "mediaType": {
      "type": "string",
      "minLength": 1
    },
    "encoding": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceTime": {
      "type": [
        "string",
        "null"
      ]
    },
    "acquiredAt": {
      "$ref": "#/$defs/IsoDateTime"
    },
    "recordedAt": {
      "$ref": "#/$defs/IsoDateTime"
    },
    "correctionState": {
      "enum": [
        "CURRENT",
        "SUPERSEDED",
        "WITHDRAWN",
        "RECALLED",
        "DISPUTED"
      ]
    },
    "rightsState": {
      "enum": [
        "UNKNOWN",
        "REVIEW_REQUIRED",
        "APPROVED_FOR_SCOPE",
        "DENIED"
      ]
    },
    "supersedes": {
      "type": [
        "string",
        "null"
      ]
    },
    "correctionOf": {
      "type": [
        "string",
        "null"
      ]
    },
    "storageObjectRef": {
      "type": "string",
      "minLength": 1
    },
    "evidenceRefs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "claim": {
      "type": "string",
      "minLength": 1
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256
    },
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "IsoDateTime": {
      "type": "string",
      "minLength": 20
    },
    "Digest": {
      "type": "string",
      "pattern": "^sha256:[a-f0-9]{64}$"
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^[a-z0-9]+(\\.[a-z0-9]+)+$"
      },
      "additionalProperties": true
    }
  }
}