From 2505d0364040c47c87919629dfd29837fe08e045 Mon Sep 17 00:00:00 2001 From: Peter Desmet Date: Mon, 25 Sep 2023 11:21:24 +0200 Subject: [PATCH 1/3] Link fileMedia to dc:format Fix #338. I used broadMatch, since dc:format can also describe physical media --- media-table-schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/media-table-schema.json b/media-table-schema.json index bea0f06..9d87c66 100644 --- a/media-table-schema.json +++ b/media-table-schema.json @@ -81,6 +81,7 @@ { "name": "fileMediatype", "description": "Mediatype of the media file.", + "skos:broadMatch": "http://purl.org/dc/elements/1.1/format", "type": "string", "constraints": { "required": true From 1e357c0167b3ae564890d234fdffc8ec07c539e3 Mon Sep 17 00:00:00 2001 From: Peter Desmet Date: Mon, 25 Sep 2023 11:21:48 +0200 Subject: [PATCH 2/3] Mention IANA and add regular expression Fix #341 --- media-table-schema.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/media-table-schema.json b/media-table-schema.json index 9d87c66..972124b 100644 --- a/media-table-schema.json +++ b/media-table-schema.json @@ -80,11 +80,12 @@ }, { "name": "fileMediatype", - "description": "Mediatype of the media file.", + "description": "Mediatype of the media file. Expressed as an [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml).", "skos:broadMatch": "http://purl.org/dc/elements/1.1/format", "type": "string", "constraints": { - "required": true + "required": true, + "pattern": "^(image|video|audio)\/.*$" }, "example": "image/jpeg" }, From 9f2938fabed634a4170ed9f5fe10e48093c64170 Mon Sep 17 00:00:00 2001 From: Peter Desmet Date: Fri, 29 Sep 2023 09:47:46 +0200 Subject: [PATCH 3/3] Link filePublic with ac:serviceExpectation Fix #339 --- media-table-schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/media-table-schema.json b/media-table-schema.json index 972124b..2861146 100644 --- a/media-table-schema.json +++ b/media-table-schema.json @@ -63,6 +63,7 @@ { "name": "filePublic", "description": "`false` if the media file is not publicly accessible (e.g. to protect the privacy of people).", + "skos:broadMatch": "http://rs.tdwg.org/ac/terms/serviceExpectation", "type": "boolean", "constraints": { "required": true