Open smrgeoinfo opened 3 weeks ago
In YAML LinkML schema, update restult_time to
result_time:
range: string
any_of:
- range: date
- range: datetime
- pattern: "^(?:[1]?[0-9]{3}|20[0-2][0-9])$"
- pattern: "^(?:[1]?[0-9]{3}|20[0-2][0-9])-(?:0[1-9]|1[0-2])$"
domain: SamplingEvent
description: >
Date on which the sample was collected. Can be YYYY, YYYY-MM, xsd:date, or xsd:dateTime.
Yaml tested with LinkML tools linkml-lint, and validates. linkml gen-json-schema generates correct json schema.
generalize dates to allow YYYY, YYYY-MM, YYYY-MM-DD, YYYY-MM-DDThh-mm etc.... Update LinkML and JSON schema.
In JSON schema want:
looks like pattern is the corresponding LinkML schema slot property for the regex statements