@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:x500_distinguished_name a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:topConceptOf <https://registry.apicrafter.io/> ;
    skos:notation "x500_distinguished_name" ;
    skos:prefLabel "X.500 distinguished name (string form)"@en ;
    skos:definition "Name of an entry in an X.500 or LDAP directory and of the subject or issuer of an X.509 certificate, written as a string of attribute=value pairs, for example CN=..., O=..., C=... The string form is defined by RFC 4514 (pairs separated by commas, multi-valued names joined with +); certificate tools such as Windows CryptoAPI and OpenSSL print the same form with a space after each comma, use E for the email address and S or ST for the region, and may write an attribute by its OID. Russian qualified certificates add attributes such as ИНН, ОГРН and СНИЛС. The regexp needs at least two pairs and one common attribute (CN, O, OU, DC, UID, C, L, ST, S, STREET, E, SN, G or T), and values without an = sign. The slash form /C=RU/O=... of OpenSSL is not covered. The name of a person or the SNILS in it are personal data."@en ;
    skos:prefLabel "Отличительное имя X.500 (DN)"@ru ;
    skos:definition "Имя записи каталога X.500 или LDAP, владельца или издателя сертификата X.509 в виде строки пар атрибут=значение (CN=..., O=..., C=...). В российских квалифицированных сертификатах есть атрибуты ИНН, ОГРН, СНИЛС."@ru ;
    skos:example "UID=jsmith,DC=example,DC=net" ;
    skos:example "OU=Sales+CN=J. Smith,DC=example,DC=net" ;
    skos:example "CN=GnuTLS certificate authority,ST=Leuven,OU=GnuTLS certificate authority,O=GnuTLS,C=BE" ;
    skos:example "CN=Минкомсвязь России, ИНН=007710474375, ОГРН=1047702026701, O=Минкомсвязь России, STREET=улица Тверская, дом 7, L=г. Москва, ST=77 Москва, C=RU, E=dit@minsvyaz.ru" ;
    mcr:status "draft" ;
    mcr:isPII true ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?=(?:.*[,;+]\\s*)?(?:CN|O|OU|DC|UID|C|L|ST|S|STREET|E|SN|G|T)=)(?:[A-Za-zА-ЯЁа-яё][A-Za-zА-ЯЁа-яё0-9-]*|(?:OID\\.)?[0-2](?:\\.\\d+)+)=[^=]*(?:[,;+]\\s*(?:[A-Za-zА-ЯЁа-яё][A-Za-zА-ЯЁа-яё0-9-]*|(?:OID\\.)?[0-2](?:\\.\\d+)+)=[^=]*)+$" ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc4514> ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.4> .
