Skip to content

Commit

Permalink
Update schema and docs URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
duncandewhurst committed Sep 7, 2023
1 parent a7c3113 commit 479376c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A template for entering [Risk Data Library Standard (RDLS)](https://docs.riskdat
1. Convert your data to JSON format and validate it against the RDLS schema using the [RDLS Convertor](http://metadata.riskdatalibrary.org).
1. Fix any issues reported by the RDLS Convertor.

For more guidance on how to publish RDLS metadata, refer to the [implementation guidance](https://docs.riskdatalibrary.org/en/dev/guides/).
For more guidance on how to publish RDLS metadata, refer to the [implementation guidance](https://docs.riskdatalibrary.org/en/latest/guides/).

## How to customise the template

Expand All @@ -35,7 +35,7 @@ It indicates that each row under that field path should be interpreted as an ite
## Reference
### Worksheets

The template consists of several worksheets, reflecting the structure of the RDLS schema. The `datasets` worksheet is the main worksheet and each row in the `datasets` worksheet represents a risk dataset. The other worksheets in the template represent arrays in the RDLS schema, with rows representing items in the arrays. For example, each row in the the `resources` worksheet represents a [resource](https://docs.riskdatalibrary.org/en/dev/reference/schema/#resource). For more information on the RDLS schema, refer to the [schema reference](https://docs.riskdatalibrary.org/en/dev/reference/).
The template consists of several worksheets, reflecting the structure of the RDLS schema. The `datasets` worksheet is the main worksheet and each row in the `datasets` worksheet represents a risk dataset. The other worksheets in the template represent arrays in the RDLS schema, with rows representing items in the arrays. For example, each row in the the `resources` worksheet represents a [resource](https://docs.riskdatalibrary.org/en/latest/reference/schema/#resource). For more information on the RDLS schema, refer to the [schema reference](https://docs.riskdatalibrary.org/en/latest/reference/).

### Identifiers

Expand All @@ -55,7 +55,7 @@ Each column in the template represents a field in the RDLS schema. The following
* integer (whole number)
* boolean (true/false)
* array (list of values).
* `values`: If the field references a closed [codelist](https://docs.riskdatalibrary.org/en/dev/reference/codelists/), the permitted values. If the value of the field must conform to a particular [string format](https://json-schema.org/understanding-json-schema/reference/string.html#built-in-formats), the name of the format. The possible formats are:
* `values`: If the field references a closed [codelist](https://docs.riskdatalibrary.org/en/latest/reference/codelists/), the permitted values. If the value of the field must conform to a particular [string format](https://json-schema.org/understanding-json-schema/reference/string.html#built-in-formats), the name of the format. The possible formats are:
* date (YYYY-MM-DD)
* email
* iri (web address)
Expand Down
6 changes: 3 additions & 3 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from ocdskit.mapping_sheet import mapping_sheet
from xlsxwriter.utility import xl_col_to_name

RDLS_SCHEMA_URL = "https://raw.githubusercontent.com/GFDRR/rdl-standard/0__2__0/schema/rdls_schema.json"
RDLS_DOCS_URL = "https://rdl-standard.readthedocs.io/en/dev"
RDLS_SCHEMA_URL = "https://docs.riskdatalibrary.org/en/0__2__0/rdls_schema.json"
RDLS_DOCS_URL = "https://docs.riskdatalibrary.org/"

# https://flatten-tool.readthedocs.io/en/latest/create-template/#all-create-template-options
TRUNCATION_LENGTH = 10
Expand Down Expand Up @@ -111,7 +111,7 @@ def cli():
)
@click.option('-s',
'--schema_url',
default='https://docs.riskdatalibrary.org/en/dev/rdls_schema.json',
default='https://docs.riskdatalibrary.org/en/0__2__0/rdls_schema.json',
show_default=True
)
@click.option('-w',
Expand Down

0 comments on commit 479376c

Please sign in to comment.