@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:pfafstetter_code a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "pfafstetter_code" ;
    skos:prefLabel "Pfafstetter basin code"@en ;
    skos:definition "Code of a river basin in the Pfafstetter coding of Otto Pfafstetter: at every level the four largest tributary basins are numbered 2, 4, 6 and 8, the interbasins between them 1, 3, 5, 7 and 9 and a closed basin 0, so a code of n digits is a basin of level n inside the basin named by its first n-1 digits. South American hydrographic units are coded this way (in Bolivia 4 the Amazon, 8 La Plata and 0 the closed Altiplano basin; 85899 a unit of the Guadalquivir in Tarija), as are the ottobacias of the Brazilian water agency ANA and the PFAF_ID of the global HydroBASINS. Leading zeros are part of the code (015)."@en ;
    skos:prefLabel "Código Pfafstetter de cuenca"@es ;
    skos:prefLabel "Código de Pfafstetter (ottobacia)"@pt ;
    skos:broader dt:id ;
    skos:example "85899" ;
    skos:example "8589929" ;
    skos:example "01592" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^\\d{1,12}$" ;
    rdfs:seeAlso <https://en.wikipedia.org/wiki/Pfafstetter_Coding_System> ;
    rdfs:seeAlso <https://www.hydrosheds.org/products/hydrobasins> .
