@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:onion_address a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:topConceptOf <https://registry.apicrafter.io/> ;
    skos:notation "onion_address" ;
    skos:prefLabel "Tor onion service address (.onion)"@en ;
    skos:definition "Address of a Tor onion service, reachable only through the Tor network. A version 3 address, the only kind that current Tor releases support, is 56 base32 characters followed by .onion. The characters encode the 32-byte ed25519 public key of the service, a 2-byte SHA3-256 checksum and the version byte 3, so the last character is always d. Subdomains may precede it, as in www.<address>.onion. The 16-character version 2 addresses were retired in 2021 and do not match. The regexp checks the form, not the checksum."@en ;
    skos:prefLabel "Адрес onion-сервиса Tor (.onion)"@ru ;
    skos:definition "Адрес onion-сервиса сети Tor версии 3: 56 символов base32 и суффикс .onion."@ru ;
    skos:example "pg6mmjiyjmcrsslvykfwnntlaru7p5svn6y2ymmju6nubxndf4pscryd.onion" ;
    skos:example "sp3k262uwy4r2k3ycr5awluarykdpag6a7y33jxop4cs2lu5uz5sseqd.onion" ;
    skos:example "www.xa4r2iadxm55fbnqgwwi5mymqdcofiu3w6rpbtqn7b2dyn7mgwj64jyd.onion" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?:[a-z0-9-]+\\.)*[a-z2-7]{54}[aiqy]d\\.onion$" ;
    rdfs:seeAlso <https://en.wikipedia.org/wiki/.onion> ;
    rdfs:seeAlso <https://spec.torproject.org/rend-spec/encoding-onion-addresses.html> .
