From 9e68e3cccd5e85398407483c645a9c80015269c2 Mon Sep 17 00:00:00 2001 From: Jakob Voss Date: Fri, 20 Dec 2024 16:22:03 +0100 Subject: [PATCH] Change field replacedBy (breaking) and add basedOn --- jskos.md | 11 +++++++++-- schemas/item.schema.json | 17 +++++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/jskos.md b/jskos.md index 5154443..889b009 100644 --- a/jskos.md +++ b/jskos.md @@ -389,7 +389,8 @@ endPlace [set] where an item ended (e.g. place of death place [set] other relevant place(s) of the item location [location] geographic location of the item address [address] postal address of the item -replacedBy [item] related item that supplants, displaces, or supersedes the item +replacedBy [set] of [item] related items that supplant, displace, or supersede this item +basedOn [set] of [item] related items that inspired or led to this item subject [set] what this item is about (e.g. topic) subjectOf [set] resources about this item (e.g. documentation) depiction [list] of [URL] list of image URLs depicting the item @@ -511,11 +512,15 @@ if this field is given. If `types` and `concepts` are sets, the `types` set SHOULD include all [concept types] for each concept's `type` other than `http://www.w3.org/2004/02/skos/core#Concept`. -Field `partOf` at Concept Types MUST be interpreted as following: +Resource field `partOf` at a concept scheme MUST be interpreted as following: - if the linked resource is another [concept scheme], the concept scheme is *subset of* the other concept scheme - if the linked resource is a [registry], the concept scheme is *listed in* in the registry +Item field `replacedBy` at a concept schemes SHOULD be used to connect successive editions or concept scheme that have been replaced or renamed. + +Item field `basedOn` at a concept schemes SHOULD be used to connect translations, abridged versions, or concept schemes that have been inspired by another concept scheme. + ## Concept Occurrences [occurrences]: #concept-occurrences @@ -1201,6 +1206,8 @@ Public services to validate JSKOS data are included in instances of - Add extended dates for `startDate`, `endDate`, and `relatedDate`. - Add `relatedDates` to replace `relatedDate` - Clarify semantics of resource fields +- Change item field `replacedBy` to be set (breaking change!) +- Add item field `basedOn` ### 0.5.4 (2024-09-27) {.unnumbered} diff --git a/schemas/item.schema.json b/schemas/item.schema.json index ef2ee0b..4a7e77d 100644 --- a/schemas/item.schema.json +++ b/schemas/item.schema.json @@ -5,6 +5,19 @@ "description": "named entities", "type": "object", "definitions": { + "itemSet": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "null" + }, + { + "$ref": "#" + } + ] + } + }, "language-map": { "type": "object", "patternProperties": { @@ -193,8 +206,8 @@ "$ref": "#/definitions/address" }, "replacedBy": { - "description": "A related item that supplants, displaces, or supersedes the described item", - "$ref": "#" + "description": "Related items that supplant, displace, or supersede the described item", + "$ref": "#/definitions/itemSet" }, "subject": { "description": "what this item is about (e.g. topic)",