-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
193 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
|
||
There are several available methods to interact with the JSONLD files. | ||
Instructions on how to use these are found on each respective page within the sub menu. | ||
|
||
|
||
### Methods of interaction | ||
|
||
The main categories are: | ||
#### 1. Direct interaction | ||
Using the files locally or from the GitHub Repository. This can be done in a number of ways: | ||
- local copy | ||
- github online interface | ||
- GET commands from a scripting language | ||
|
||
#### 2. CMIPLD web browsing interface. | ||
This is a rudementary JSONLD static page that can access all the JSONld files. This can be used to: | ||
- check file contents | ||
- view context | ||
- perform framing requests | ||
- explore available files | ||
- quickly check entries using prefixes without the need for a full URL | ||
|
||
#### 3. PyLD native python interface. | ||
This is the native library for interacting with JSONLD in python. This has the benefits of: | ||
- Extracting files in Python | ||
- Framing | ||
- Performing complex checks and incorporating the CVs in a personal workflow. | ||
|
||
#### 4. The CMIP-LD CLI | ||
A quick command line interface that allows dynamic JSON-LD file viewing in the terminal. | ||
- performs recursive fills | ||
- allows the use of prefixes to easily access files | ||
- colapsable and coloured JSON exploration in the terminal | ||
- outputs file contents or framing into a file. | ||
|
||
|
||
#### 5. CMIP-LD Python Library | ||
A wrapper around PyLD with a number of useful tools and presets to ease the learning curve for non-technical and technical users. | ||
- A list of registerd LD repositories. | ||
- Can access and cross compare files both online and offline. | ||
- Recursive file population (extracts all nested (linked) entries into your file) | ||
- Link Checker | ||
- LD Network generator. | ||
- File Checker | ||
- Easy Framer and file simplifier. |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Screenshots and usage to go here. | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install git+https://github.com/WCRP-CMIP/CMIP-LD.git | ||
``` | ||
! warning | ||
Beware that this repository is currently rapidly in development, and you will have to upgrade the installed version regularly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
## 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/](https://wcrp-cmip.github.io/WCRP-UNIVERSE/) | [repo-link](https://github.com/wcrp-cmip/WCRP-UNIVERSE) | | ||
| mip-variables | [https://wcrp-cmip.github.io/MIP-variables/](https://wcrp-cmip.github.io/MIP-variables/) | [repo-link](https://github.com/wcrp-cmip/MIP-variables) | | ||
| cmip6plus | [https://wcrp-cmip.github.io/CMIP6Plus_CVs/](https://wcrp-cmip.github.io/CMIP6Plus_CVs/) | [repo-link](https://github.com/wcrp-cmip/CMIP6Plus_CVs) | | ||
| cmip7 | [https://wcrp-cmip.github.io/CMIP7_CVs/](https://wcrp-cmip.github.io/CMIP7_CVs/) | [repo-link](https://github.com/wcrp-cmip/CMIP7_CVs) | | ||
| cf | [https://wcrp-cmip.github.io/CF/](https://wcrp-cmip.github.io/CF/) | [repo-link](https://github.com/wcrp-cmip/CF) | | ||
| obs4mips | [https://wolfiex.github.io/obs4MIPs-cmor-tables-ld/](https://wolfiex.github.io/obs4MIPs-cmor-tables-ld/) | [repo-link](https://github.com/wolfiex/obs4MIPs-cmor-tables-ld) | | ||
|
||
|
||
|
||
This means that you can download a local copy with | ||
```bash | ||
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 `data_descriptors` directory in each repository. | ||
|
||
|
||
If the user should so wish, they are also served using github pages, under the same filepath excluding the term `data_descriptors`. | ||
|
||
This means that the following activity page | ||
|
||
[ https://github.com/WCRP-CMIP/WCRP-UNIVERSE/blob/main/data_descriptors/activity/cmip.json | ||
]( https://github.com/WCRP-CMIP/WCRP-UNIVERSE/blob/main/data_descriptors/activity/cmip.json | ||
) | ||
|
||
becomes | ||
|
||
[ https://wcrp-cmip.github.io/WCRP-UNIVERSE/activity/cmip.json]( 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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Python LD Notebooks to go in here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
A wireframe of the JSONLD viewer can be found at : | ||
|
||
[https://wcrp-cmip.github.io/CMIP-LD/static/viewer/](https://wcrp-cmip.github.io/CMIP-LD/static/viewer/) | ||
|
||
To test this out, we can enter the URI for a JSONLD file. E.g. for the CMIP activity we have have the ID: | ||
[https://wcrp-cmip.github.io/WCRP-UNIVERSE/activity/cmip](https://wcrp-cmip.github.io/WCRP-UNIVERSE/activity/cmip) | ||
|
||
### Link simplification | ||
Rather than remembering this whole link, we are also able to use the pre-defined prefix from the table before | ||
|
||
| **Repository** | **GitHub Pages URL** | **Repository URL** | | ||
|---------------------|-------------------------------------------------------------|-----------------------------:| | ||
| wcrp-universe | [https://wcrp-cmip.github.io/WCRP-UNIVERSE/](https://wcrp-cmip.github.io/WCRP-UNIVERSE/) | [repo-link](https://github.com/wcrp-cmip/WCRP-UNIVERSE) | | ||
| mip-variables | [https://wcrp-cmip.github.io/MIP-variables/](https://wcrp-cmip.github.io/MIP-variables/) | [repo-link](https://github.com/wcrp-cmip/MIP-variables) | | ||
| cmip6plus | [https://wcrp-cmip.github.io/CMIP6Plus_CVs/](https://wcrp-cmip.github.io/CMIP6Plus_CVs/) | [repo-link](https://github.com/wcrp-cmip/CMIP6Plus_CVs) | | ||
| cmip7 | [https://wcrp-cmip.github.io/CMIP7_CVs/](https://wcrp-cmip.github.io/CMIP7_CVs/) | [repo-link](https://github.com/wcrp-cmip/CMIP7_CVs) | | ||
| cf | [https://wcrp-cmip.github.io/CF/](https://wcrp-cmip.github.io/CF/) | [repo-link](https://github.com/wcrp-cmip/CF) | | ||
| obs4mips | [https://wolfiex.github.io/obs4MIPs-cmor-tables-ld/](https://wolfiex.github.io/obs4MIPs-cmor-tables-ld/) | [repo-link](https://github.com/wolfiex/obs4MIPs-cmor-tables-ld) | | ||
|
||
|
||
|
||
This means that to get to the same page, we can now type | ||
|
||
``` | ||
wcrp-universe:activity/cmip | ||
``` | ||
|
||
### Getting The result | ||
The web interface will not present a compacted view of the JSONLD file requested as such. | ||
<img style='width:800px' src='/assets/demo_images/idweb1.png'/> | ||
|
||
### Framing | ||
Currently this option is disabled to a CORRS same origin policy, but this will soon be fixed. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters