@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:es_dni_masked a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "es_dni_masked" ;
    skos:prefLabel "Spanish identity document number, masked for publication"@en ;
    skos:definition "Number of a Spanish identity document (DNI or NIE) with all but four digits replaced by asterisks, as public bodies publish it next to the name of a person. The data protection law (Ley Orgánica 3/2018, seventh additional provision) asks for four digits of the document, and the guidance of the Spanish data protection authorities picks the digits in positions four to seven, so the DNI 12345678X is written ***4567** and the NIE L1234567X is written ****4567*. The guidance is a recommendation, and registers of contracts and grants also show other positions."@en ;
    skos:prefLabel "DNI o NIE anonimizado para su publicación"@es ;
    skos:prefLabel "Номер документа DNI/NIE"@ru ;
    skos:broader dt:es_dni ;
    skos:example "***4567**" ;
    skos:example "****4567*" ;
    mcr:status "draft" ;
    mcr:isPII true ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?:\\*{3}\\d{4}\\*{2}|\\*{4}\\d{4}\\*)$" ;
    dcterms:spatial country:ES ;
    rdfs:seeAlso <https://www.aepd.es/documento/orientaciones-da7.pdf> ;
    rdfs:seeAlso <https://www.boe.es/buscar/act.php?id=BOE-A-2018-16673> .
