Skip to content

Direct Interaction

Introduction

There are several available methods to interact with the JSONLD files.

Direct interaction

As the files are valid JSON custom scripts can be used to interact with them directly.

Repository GitHub Pages URL Repository URL
wcrp-universe https://wcrp-cmip.github.io/WCRP-universe/ repo-link
mip-variables https://wcrp-cmip.github.io/MIP-variables/ repo-link
cmip6plus https://wcrp-cmip.github.io/CMIP6Plus_CVs/ repo-link
cmip7 https://wcrp-cmip.github.io/CMIP7_CVs/ repo-link
cf https://wcrp-cmip.github.io/CF/ repo-link
obs4mips https://wolfiex.github.io/obs4MIPs-cmor-tables-ld/ repo-link

This means that you can download a local copy with

git clone <github repo url>
View them in the browser, or use the requests / GET api to download them directly.

File structure

If using the github interface, you can navigate as normal. JSONLD files are currently located under the src-data directory in each repository.

If the user should so wish, they are also served using github pages, under the same filepath excluding the term src-data.

This means that the following activity page

https://github.com/WCRP-CMIP/WCRP-universe/blob/main/src-data/activity/cmip.json

becomes

https://wcrp-cmip.github.io/WCRP-universe/activity/cmip.json

where the .json is optional, but helps the browser open the file for viewing rather than downloading it.