@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix mcr: <https://registry.apicrafter.io/vocab#> .
@prefix dt: <https://registry.apicrafter.io/datatype/> .
@prefix cat: <https://registry.apicrafter.io/category/> .
@prefix country: <https://registry.apicrafter.io/country/> .
@prefix tool: <https://registry.apicrafter.io/tool/> .

dt:lv_personal_code a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:topConceptOf <https://registry.apicrafter.io/> ;
    skos:notation "lv_personal_code" ;
    skos:prefLabel "Latvian personal code"@en ;
    skos:definition "Latvian personal code (personas kods), 11 digits. Codes issued before July 2017 start with the date of birth (DDMMYY), followed by a hyphen, a century digit and four digits. Newer codes start with 32 and carry no date of birth."@en ;
    skos:broadMatch <https://w3id.org/dpv/pd#OfficialID> ;
    mcr:status "draft" ;
    mcr:isPII true ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?:(?:0[1-9]|[12]\\d|3[01])(?:0[1-9]|1[0-2])\\d{2}-?[012]\\d{4}|32\\d{4}-?\\d{5})$" ;
    dcterms:spatial country:LV ;
    dcterms:language <http://id.loc.gov/vocabulary/iso639-1/lv> ;
    rdfs:seeAlso <https://learn.microsoft.com/en-us/purview/sit-defn-latvia-personal-code> .
