Skip to content

Commit

Permalink
Merge branch 'nada-5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0001 committed Aug 9, 2023
2 parents e4fcd62 + fd52127 commit a2eefb8
Show file tree
Hide file tree
Showing 270 changed files with 6,072 additions and 3,300 deletions.
11 changes: 3 additions & 8 deletions api-documentation/catalog-admin/document-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@

"crossref": {
"type": "string",
"title": "Book title",
"title": "Cross reference",
"description":"The database key of the entry being cross referenced"
},

Expand Down Expand Up @@ -646,10 +646,6 @@
"title": "Affiliation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
},
"contribution": {
"title": "Contribution",
"type": "string"
Expand Down Expand Up @@ -910,9 +906,8 @@
},

"mandate": {
"title": "Audience",
"type": "string",
"description":"A category of user for whom the resource is intended."
"title": "Mandate",
"type": "string"
},

"pricing": {
Expand Down
1,023 changes: 500 additions & 523 deletions api-documentation/catalog-admin/geospatial-schema.json

Large diffs are not rendered by default.

58 changes: 41 additions & 17 deletions api-documentation/catalog-admin/script-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,23 @@
"title"
]
},
"reproducibility_status": {
"type": "object",
"title": "Reproducibility status",
"description": "Information on the reproducibility status of the project, using a controlled vocabulary",
"properties": {
"status": {
"type": "string",
"title": "status",
"description": "Status"
},
"note": {
"type": "string",
"title": "Note",
"description": "Note"
}
}
},
"abstract": {
"type": "string",
"title": "Abstract"
Expand Down Expand Up @@ -267,10 +284,7 @@
"production_date": {
"title": "Date of production (YYYY-MM-DD)",
"description": "Date in ISO format when the dissemination-ready version of the research project was produced. It can be a year (YYYY), year-month (YYYY-MM), or year-month-day (YYYY-MM-DD)",
"type": "array",
"items": {
"type": "string"
}
"type": "string"
},
"version_statement": {
"type": "object",
Expand Down Expand Up @@ -456,7 +470,7 @@
"title": "Funding Agency/Sponsor",
"type": "string"
},
"abbr": {
"abbreviation": {
"title": "Abbreviation",
"type": "string"
},
Expand Down Expand Up @@ -546,7 +560,7 @@
}
}
},
"acknowledgements": {
"acknowledgments": {
"type": "array",
"title": "Other acknowledgments",
"description": "Acknowledgments of persons or organizations (other than sponsors) who contributed to the project.",
Expand All @@ -571,9 +585,9 @@
"name"
]
},
"acknowledgement_statement": {
"title": "Acknowledgement statement",
"description": "Acknowledgement statement",
"acknowledgment_statement": {
"title": "Acknowledgment statement",
"description": "Acknowledgment statement",
"type": "string"
},
"disclaimer": {
Expand Down Expand Up @@ -916,8 +930,8 @@
"title": "Person or organization name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"affiliation": {
"title": "Affiliation",
"type": "string"
},
"role": {
Expand Down Expand Up @@ -979,6 +993,10 @@
"uri": {
"title": "License URI",
"type": "string"
},
"note": {
"title": "Note",
"type": "string"
}
}
}
Expand Down Expand Up @@ -1154,7 +1172,7 @@
"required": [
"model_id"
]
},
},
"topic_description": {
"type": "array",
"title": "Topic information",
Expand All @@ -1163,11 +1181,17 @@
"properties": {
"topic_id": {
"title": "Topic identifier",
"type": ["integer", "string"]
"type": [
"integer",
"string"
]
},
"topic_score": {
"title": "Topic score",
"type": ["number", "string"]
"type": [
"number",
"string"
]
},
"topic_label": {
"title": "Topic label",
Expand Down Expand Up @@ -1200,12 +1224,11 @@
"topic_id"
]
}

},
"additionalProperties": false
}
},
"embeddings":{
"embeddings": {
"type": "array",
"title": "Word embeddings",
"description": "Word embeddings",
Expand All @@ -1230,7 +1253,8 @@
}
},
"required": [
"id","vector"
"id",
"vector"
]
}
},
Expand Down
10 changes: 1 addition & 9 deletions api-documentation/catalog-admin/survey-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@
"access_policy": {
"type": "string",
"title": "Data access policy",
"description": "Data access policy for attached microdata resources",
"enum": [
"direct",
"open",
"public",
"licensed",
"remote",
"data_na"
],
"description": "Data access policy for microdata resources - valid values `direct`, `open`, `public`, `licensed`, `remote`, `data_na` ",
"default": "data_na"
},
"published": {
Expand Down
35 changes: 33 additions & 2 deletions api-documentation/catalog-admin/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ x-tagGroups:
- Scripts
- Survey
- Timeseries
- Timeseries database
- Geospatial
- Images
- Videos
Expand Down Expand Up @@ -762,7 +763,7 @@ paths:
/datasets/create/timeseriesdb:
post:
tags:
- Timeseries
- Timeseries database
summary: Create timeseries database
description: Create a new timeseries database
operationId: createTimeseriesDB
Expand All @@ -782,7 +783,37 @@ paths:
schema:
$ref: 'timeseries-db-schema.json'
security:
- ApiKeyAuth: []
- ApiKeyAuth: []
/datasets/update/timeseriesdb/{IDNo}:
post:
tags:
- Timeseries database
summary: Update timeseries database
description: Update timeseries database
operationId: updateTimeseriesDB
consumes:
- application/json
produces:
- application/json
parameters:
- in: "path"
name: "IDNo"
description: Unique IDNo
type: string
format: string
required: true
- in: "body"
name: "body"
required: true
schema:
$ref: 'timeseries-db-schema.json'
responses:
'200':
description: successful operation
schema:
$ref: 'timeseries-db-schema.json'
security:
- ApiKeyAuth: []
/datasets/create/timeseries:
post:
tags:
Expand Down
45 changes: 40 additions & 5 deletions api-documentation/catalog-admin/timeseries-db-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@
"title": "Dataset type",
"description": "Dataset type"
},
"doi": {
"type": "string",
"title": "DOI",
"description": "DOI handle"
},
"date_created": {
"type": "string",
"title": "Date of creation",
Expand Down Expand Up @@ -386,6 +381,26 @@
]
}
},
"dimensions": {
"type": "array",
"description": "Dimensions",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
}
},
"required": [
"name"
]
}
},
"ref_country": {
"type": "array",
"title": "Reference country",
Expand Down Expand Up @@ -649,6 +664,26 @@
]
}
},
"errata": {
"type": "array",
"title": "Errata",
"description": "List of corrected errors in data or metadata",
"items": {
"type": "object",
"properties": {
"date": {
"title": "Date of erratum",
"description": "Date when the erratum was reported or published",
"type": "string"
},
"description": {
"title": "Description of the erratum",
"description": "A description of the erratum, with information on which data or metadata were impacted",
"type": "string"
}
}
}
},
"license": {
"type": "array",
"title": "License",
Expand Down
40 changes: 40 additions & 0 deletions api-documentation/catalog-admin/timeseries-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
Expand Down Expand Up @@ -294,6 +298,10 @@
"type": "string",
"title": "Methodology"
},
"derivation": {
"type": "string",
"title": "Derivation"
},
"imputation": {
"type": "string",
"title": "Imputations"
Expand Down Expand Up @@ -399,10 +407,18 @@
"items": {
"type": "object",
"properties": {
"id": {
"title": "Unique Identifier",
"type": "string"
},
"name": {
"title": "Discipline title or name",
"type": "string"
},
"parent_id": {
"title": "Parent Identifier",
"type": "string"
},
"vocabulary": {
"title": "Vocabulary",
"description": "Vocabulary",
Expand Down Expand Up @@ -436,6 +452,10 @@
"end": {
"type": "string",
"title": "End"
},
"notes": {
"type": "string",
"title": "Notes"
}
}
}
Expand Down Expand Up @@ -718,6 +738,26 @@
]
}
},
"errata": {
"type": "array",
"title": "Errata",
"description": "List of corrected errors in data or metadata",
"items": {
"type": "object",
"properties": {
"date": {
"title": "Date of erratum",
"description": "Date when the erratum was reported or published",
"type": "string"
},
"description": {
"title": "Description of the erratum",
"description": "A description of the erratum, with information on which data or metadata were impacted",
"type": "string"
}
}
}
},
"notes": {
"title": "Notes",
"description": "Notes",
Expand Down
Loading

0 comments on commit a2eefb8

Please sign in to comment.