Skip to content

eLTER-RI/metadata-schemas

Repository files navigation

eLTER Metadata schemas

Description

This repository contains the eLTER metadata schemas for the eLTER network. The schemas are used to describe datasets, data products, and other related information.

Info

Files suffixed with _monolith contain all $referenced subschemas inline.

Viewer

A human readable representation of the schema is available using the Atlassian Json-Schema-Viewer App using the following link:

https://json-schema.app/view/%23/%23%2Fproperties%2Fmetadata?url=https%3A%2F%2Fraw.githubusercontent.com%2FeLTER-RI%2Fmetadata-schemas%2Frefs%2Fheads%2Fmain%2FeLTERMetadataSchemaDatasets_monolith.json

Converting between monoliths and subschemas

Bake a monolith

Monoliths (dereferenced main schemas with inlined subschema content rather than mere $references) are created whenever an update is pushed as or to a) /subschemas, b) eLTERMetadataSchemaDatasets.json or c) eLTERMetadataSchemaExternalDatasets.json

These artifacts can be retrieved like so:

  1. go to Actions (top menu)
  2. go to workflow make monolith (left sidebar)
  3. in the main panel, select "Run workflow" from the "Run workflow" dropdown on the right (branch: main)
  4. wait a couple of seconds until the workflow starts, and another 10-15 s until done
  5. click the workflow title
  6. scroll down to the "artifacts" card and download desired monolith(s) as zip-archive

The names of the main schemas getting dereferenced are hardcoded in make-monolith.js (which does the work) and make-monolith.yml which configures the automated workflow.

ℹ️ This action does not automatically update the repository. If desired, download the output (click the action's title, scroll down and download the output from the "artifacts" card) and commit.

Extract subschemas from monolith(s)

If, conversely, you want to extract subschemas from an updated monolith, trigger the workflow create subschemas from monolith. Remember to download the artifacts and commit them to update the repo (see above).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6