@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:magnet_link a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "magnet_link" ;
    skos:prefLabel "Magnet URI (BitTorrent)"@en ;
    skos:definition "URI of the magnet: scheme that identifies a file or a torrent by a hash of its content instead of by its location, used by BitTorrent and other peer-to-peer clients. The parameter xt (exact topic) holds a URN such as urn:btih:<info hash> for BitTorrent v1 (BEP 9) or urn:btmh:<multihash> for v2 (BEP 52); optional parameters include dn (display name), tr (tracker URL), ws (web seed) and xs (exact source). The regexp requires an xt parameter, in any position."@en ;
    skos:prefLabel "Magnet-ссылка"@ru ;
    skos:definition "URI схемы magnet:, который указывает файл или торрент по хешу содержимого, а не по адресу."@ru ;
    skos:broader dt:uri ;
    skos:example "magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Fexplodie.org%3A6969" ;
    skos:example "magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny" ;
    skos:example "magnet:?dn=Sintel&xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10" ;
    skos:example "magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10" ;
    mcr:status "stable" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^magnet:\\?(?:[^\\s&#]*&)*xt(?:\\.[0-9]+)?=urn:[A-Za-z0-9][A-Za-z0-9-]{0,31}:[^\\s&#]+(?:&[^\\s#]*)?$" ;
    rdfs:seeAlso <https://en.wikipedia.org/wiki/Magnet_URI_scheme> ;
    rdfs:seeAlso <https://www.bittorrent.org/beps/bep_0009.html> ;
    rdfs:seeAlso <https://www.bittorrent.org/beps/bep_0052.html> .
