Skip to content

Commit

Permalink
Add relatedDates to replace relatedDate
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Dec 16, 2024
1 parent 7fc3f65 commit eb5474b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions context.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"startDate": "http://schema.org/startDate",
"endDate": "http://schema.org/endDate",
"relatedDate": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"relatedDates": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"location": {
"@id": "http://www.opengis.net/ont/geosparql#asGeoJSON",
"@type": "@json"
Expand Down
3 changes: 2 additions & 1 deletion examples/example.item.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"startDate": "Y-12424",
"endDate": "2016/2023",
"relatedDate": "2012T12:07"
"relatedDate": "2012T12:07",
"relatedDates": ["2007-03-01T13:00:00Z","-2012"]
}
4 changes: 3 additions & 1 deletion jskos.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ changeNote [language map] of [list] see [SKOS Documentary Notes]
note [language map] of [list] see [SKOS Documentary Notes]
startDate [date] date of begin (birth, creation...) of the item
endDate [date] date of end (death, resolution...) of the item
relatedDate [date] other date somehow related to the item
relatedDate [date] other date somehow related to the item (deprecated)
relatedDates array of [date] other dates somehow related to the item
startPlace [set] where an item started (e.g. place of birth)
endPlace [set] where an item ended (e.g. place of death)
place [set] other relevant place(s) of the item
Expand Down Expand Up @@ -1177,6 +1178,7 @@ Public services to validate JSKOS data are included in instances of
### next

- Add extended dates for `startDate`, `endDate`, and `relatedDate`.
- Add `relatedDates` to replace `relatedDate`

### 0.5.4 (2024-09-27) {.unnumbered}

Expand Down
9 changes: 8 additions & 1 deletion schemas/item.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,16 @@
"$ref": "#/definitions/edtf"
},
"relatedDate": {
"description": "other date somehow related to the item",
"description": "other date somehow related to the item (deprecated, use relatedDates instead)",
"$ref": "#/definitions/edtf"
},
"relatedDates": {
"description": "other date somehow related to the item (deprecated, use relatedDates instead)",
"type": "array",
"items": {
"$ref": "#/definitions/edtf"
}
},
"location": {
"description": "geographic location of the item",
"$ref": "#/definitions/location"
Expand Down

0 comments on commit eb5474b

Please sign in to comment.