From 5634afa7b2a60dc6d9e788fffa38243b8284bfb6 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 3 Aug 2026 10:13:51 -0300 Subject: [PATCH] Annotate the reduced-precision calendar dates with XSD datatypes Signed-off-by: Juan Cruz Viotti --- schemas/2020-12/iso/datetime/2019/date/calendar-month.json | 1 + schemas/2020-12/iso/datetime/2019/date/calendar-year.json | 1 + 2 files changed, 2 insertions(+) diff --git a/schemas/2020-12/iso/datetime/2019/date/calendar-month.json b/schemas/2020-12/iso/datetime/2019/date/calendar-month.json index a739449e..8c058bdc 100644 --- a/schemas/2020-12/iso/datetime/2019/date/calendar-month.json +++ b/schemas/2020-12/iso/datetime/2019/date/calendar-month.json @@ -3,6 +3,7 @@ "title": "ISO 8601-1:2019 Calendar Month (Extended Format)", "description": "A calendar date with reduced precision representing a specific calendar month [YYYY][\"-\"][MM] (§5.2.2.2 a)", "examples": [ "1985-04", "2000-01", "2023-12", "0000-01", "9999-12" ], + "x-jsonld-datatype": "http://www.w3.org/2001/XMLSchema#gYearMonth", "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", "x-links": [ "https://www.iso.org/standard/70907.html" ], "type": "string", diff --git a/schemas/2020-12/iso/datetime/2019/date/calendar-year.json b/schemas/2020-12/iso/datetime/2019/date/calendar-year.json index d3179327..18c40f63 100644 --- a/schemas/2020-12/iso/datetime/2019/date/calendar-year.json +++ b/schemas/2020-12/iso/datetime/2019/date/calendar-year.json @@ -3,6 +3,7 @@ "title": "ISO 8601-1:2019 Calendar Year", "description": "A calendar date with reduced precision representing a specific calendar year [YYYY] (§5.2.2.2 b)", "examples": [ "1985", "2000", "2023", "0000", "9999" ], + "x-jsonld-datatype": "http://www.w3.org/2001/XMLSchema#gYear", "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", "x-links": [ "https://www.iso.org/standard/70907.html" ], "type": "string",