Skip to content

Commit

Permalink
Added proposed 'dates' string
Browse files Browse the repository at this point in the history
  • Loading branch information
docuracy authored Feb 26, 2022
1 parent b2e41ef commit eaa407a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schemas/LP.json
Original file line number Diff line number Diff line change
Expand Up @@ -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":"(?:^(?<start>(?:[<>]?=?c?(?:[\d]{4}|[+-]{1}[\d]{4,10})(?:-[\d]{2}){0,2})|\?)?(?:\/(?<end>(?:[<>]?=?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",
Expand Down

0 comments on commit eaa407a

Please sign in to comment.