Preview release.These docs are a work in progress. Pages are still being written, links may break, and structure may shift without notice. Treat everything here as a draft and report issues onGitHub.
Metadata dataset
const url = 'https://data.example.test/metadata/datasets/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://data.example.test/metadata/datasets/example \ --header 'Authorization: Bearer <token>'Returns one visible portable metadata dataset with entity field metadata.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Dataset identifier
Responses
Section titled “Responses”Successful response
Portable metadata dataset record. See /metadata/datasets/{dataset_id} for the live document.
object
Entity metadata keyed by entity name.
object
object
Field metadata keyed by field name.
object
object
object
object
object
object
object
object
Examples
Portable metadata dataset record.
{ "access_rights": "restricted", "adms_status": "under_development", "applicable_legislation": [], "conforms_to": [ "https://publicschema.org/concepts/Household", "https://schema.spdci.org/extensions/social/v1/Group" ], "dataset_id": "social_registry", "description": "Synthetic social registry used for OpenAPI contract generation.", "entities": { "household": { "concept_uri": "https://publicschema.org/concepts/Household", "description": "Registered household.", "fields": { "area_geometry": { "concepts": [], "constraints": {}, "field_type": "string", "name": "area_geometry", "required": false }, "id": { "concepts": [ "https://example.test/vocab/properties/householdId" ], "constraints": {}, "field_type": "string", "name": "id", "required": true }, "region": { "codelist_scheme_iri": "https://example.test/vocab/codelists/Region", "concepts": [ "https://example.test/vocab/properties/region" ], "constraints": {}, "field_type": "string", "name": "region", "required": false } }, "identifiers": [], "name": "household", "primary_key": "id", "relationships": [ { "concept_uri": "https://example.test/vocab/relationships/householdMember", "foreign_key": "household_id", "kind": "has_many", "links": { "target_schema": "https://data.example.test/metadata/schema/social_registry/individual/schema.json" }, "name": "members", "target": "individual" } ], "title": "Household" }, "individual": { "concept_uri": null, "description": "", "fields": { "age": { "concepts": [], "constraints": {}, "field_type": "integer", "name": "age", "required": false }, "household_id": { "concepts": [], "constraints": {}, "field_type": "string", "name": "household_id", "required": true }, "id": { "concepts": [], "constraints": {}, "field_type": "string", "name": "id", "required": true } }, "identifiers": [], "name": "individual", "primary_key": "id", "relationships": [ { "foreign_key": "household_id", "kind": "belongs_to", "links": { "target_schema": "https://data.example.test/metadata/schema/social_registry/household/schema.json" }, "name": "household", "target": "household" } ], "title": "Individual" } }, "evidence_offerings": {}, "owner": "Social Ministry", "policy": { "assigner": "did:web:data.example.test", "permissions": [ { "action": "odrl:use", "constraints": [], "duties": [], "target": "#dataset-social_registry" } ], "profile": [], "prohibitions": [], "uid": "#policy-social_registry-offer" }, "sensitivity": "personal", "title": "Social Registry", "update_frequency": "monthly"}Missing or invalid bearer credential.
RFC 9457 Problem Details, returned for every non-2xx response.
object
Example
{ "code": "auth.missing_credential", "detail": "no credential provided in Authorization or x-api-key header", "request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV", "status": 401, "title": "Missing credential", "type": "https://registry-relay.dev/problems/auth/missing_credential"}Authenticated principal lacks the scope required for this operation.
RFC 9457 Problem Details, returned for every non-2xx response.
object
Example
{ "code": "auth.missing_credential", "detail": "no credential provided in Authorization or x-api-key header", "request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV", "status": 401, "title": "Missing credential", "type": "https://registry-relay.dev/problems/auth/missing_credential"}Dataset not found or not visible to the caller.
RFC 9457 Problem Details, returned for every non-2xx response.
object
Example
{ "code": "auth.missing_credential", "detail": "no credential provided in Authorization or x-api-key header", "request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV", "status": 401, "title": "Missing credential", "type": "https://registry-relay.dev/problems/auth/missing_credential"}default
Section titled “default”Problem Details error response.
RFC 9457 Problem Details, returned for every non-2xx response.
object
Example
{ "code": "auth.missing_credential", "detail": "no credential provided in Authorization or x-api-key header", "request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV", "status": 401, "title": "Missing credential", "type": "https://registry-relay.dev/problems/auth/missing_credential"}