@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:ru_phone_national a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "ru_phone_national" ;
    skos:prefLabel "Russian phone number in national notation"@en ;
    skos:definition "Phone number of the Russian Federation written in national notation: the trunk prefix 8, then the area or operator code of 3 to 5 digits, often in parentheses, and the subscriber number split by spaces or hyphens, 11 digits in total. This is how most regional open data portals publish contact phones of organizations, for example \"8 (XXXXX) X-XX-XX\". The regexp requires at least one space, hyphen or parenthesis, so that a plain 11-digit number is not taken for a phone. The international form +7 is covered by ru_phone."@en ;
    skos:prefLabel "Номер телефона в России в национальном формате"@ru ;
    skos:definition "Номер телефона в национальной записи с префиксом 8, кодом города или оператора и номером абонента, разделённым пробелами или дефисами, например «8 (XXXXX) X-XX-XX»."@ru ;
    skos:broader dt:phone ;
    skos:example "8 (301) 123-45-67" ;
    skos:example "8 (912) 345-67-89" ;
    skos:example "8(301)1234567" ;
    mcr:status "draft" ;
    mcr:isPII true ;
    mcr:regexp "^(?=(?:\\D*\\d){11}$)(?=.*[ ()-])8[ -]?(?:\\(\\d{3,5}\\)|\\d{3,5})[ -]?\\d{1,3}(?:[ -]?\\d{1,3}){1,3}$" ;
    dcterms:spatial country:RU ;
    rdfs:seeAlso <https://github.com/google/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml> .
