From eaa407a2355f3061d699f9fd588f9ccefdcb8bc2 Mon Sep 17 00:00:00 2001 From: Stephen Gadd <42514781+docuracy@users.noreply.github.com> Date: Sat, 26 Feb 2022 09:52:37 +0000 Subject: [PATCH] Added proposed 'dates' string See https://github.com/LinkedPasts/linked-places-format/issues/42#issue-1149521345 --- schemas/LP.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/schemas/LP.json b/schemas/LP.json index a951ce3..983a2e3 100644 --- a/schemas/LP.json +++ b/schemas/LP.json @@ -16,6 +16,12 @@ "type":"string", "minLength":4 }, + "dates":{ + "description":"***TO DISCUSS***: a short-form temporal value which can either appear in a 'timespans' array or as the only value of a 'when' property.", + "examples":"['1939/1945','>2010','>=2011','>=2010-04-01','/<=1660-06','/?','?/>=2022','c-2500/>=2022','c-4543000000/>=2022','1934-12-18/?']", + "type":"string", + "pattern":"(?:^(?(?:[<>]?=?c?(?:[\d]{4}|[+-]{1}[\d]{4,10})(?:-[\d]{2}){0,2})|\?)?(?:\/(?(?:[<>]?=?c?(?:[\d]{4}|[+-]{1}[\d]{4,10})(?:-[\d]{2}){0,2})|\?))?){1,2}$" + }, "whenDelimiter":{ "description":"***TO DISCUSS***: LP specification (https://github.com/LinkedPasts/linked-places-format#when-required) requires one of these three properties, but offers inconsistent examples.", "type":"object",