X-Git-Url: https://git.wikimedia.ca/?p=eccc_to_commons.git;a=blobdiff_plain;f=commons_rules.xsd;h=49a50d31976575893aa56c5578143430ac779c09;hp=1bfd00dbc0e07f457c9905ce6316975868d5cdd0;hb=HEAD;hpb=d5920c8c99f839f2081236b0174717f0fb40d885 diff --git a/commons_rules.xsd b/commons_rules.xsd index 1bfd00d..49a50d3 100644 --- a/commons_rules.xsd +++ b/commons_rules.xsd @@ -3,7 +3,12 @@ historical data prior of its import into Wikidata. All tests done in ECCC's bulkschema.xsd aren't replicated here as we're - focusing into pure Wikimedia Commons data quality --> + focusing into pure Wikimedia Commons data quality. + + Schema is restrictive on purpose: up to date extreme values are hard coded + just like current year. It WILL break starting 2021 so we can make sure + someone has checked potential upstream structure change before running + Commons data update. --> @@ -12,7 +17,10 @@ - + + + + @@ -346,6 +354,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -375,7 +433,7 @@ - + @@ -700,6 +758,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + temperature must be provided in °C. + + + + + + + + + + + unitType must be provided metric. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + precipitation must be provided in mm or cm. + + + + + + + + + + + + unitType must be provided metric. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -936,6 +1130,53 @@ + + + + + + + + Value is currently between -63.0 and 50.0. + + + + + + + + + + + + + + + + Max value is currently 999. + + + + + + + + + + + + + + + + Percentage. + + + + + + +