RangeValidLeapYearType

Last modified by Artur K. on 2026/06/05 16:20

  

https://purl.semanticip.org/linked-data/sdmx/ML/common/RangeValidLeapYearType page_white_text TTL
rdfs:Datatype
Range Valid Leap Year Type
http://www.sdmx.org/resources/sdmxml/schemas/v3_1/common
common
simpleType

RangeValidLeapYearType is a derivation of the RangeValidMonthDayType which validates that a date of February 29 occurs in a valid leap year (i.e. if the year is divisible 4 and not by 100, unless it is also divisible by 400). This type is meant to be derived from for further validation.

SDMXCommon.xsd

<xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RangeValidLeapYearType">
  <xs:annotation>
   <xs:documentation>RangeValidLeapYearType is a derivation of the RangeValidMonthDayType which validates that a date of February 29 occurs in a valid leap year (i.e. if the year is divisible 4 and not by 100, unless it is also divisible by 400). This type is meant to be derived from for further validation.</xs:documentation>
  </xs:annotation>
  <xs:restriction base="RangeValidMonthDayType">
   <xs:pattern value="((\d{2}(04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96))|((00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96)00))\-02\-29.+" />
   <xs:pattern value=".{5}02\-(([0-1][0-9])|(2[^9])).+" />
   <xs:pattern value=".{5}((0[1,3-9])|1[0-2]).+" />
  </xs:restriction>
 </xs:simpleType>

 

sip-sdmx-ML:RangeValidMonthDayType

owl:withRestrictions (
    [ xsd:pattern "((
d{2}(04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96))|((00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96)00))
-02
-29.+" ]
    [ xsd:pattern ".{5}02
-(([0-1][0-9])|(2[^9])).+" ]
    [ xsd:pattern ".{5}((0[1,3-9])|1[0-2]).+" ]
)

© Semantic R&D Group, 2026