@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:s2_cell_token a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:topConceptOf <https://registry.apicrafter.io/> ;
    skos:notation "s2_cell_token" ;
    skos:prefLabel "S2 cell token"@en ;
    skos:definition "Token of a cell of the S2 Geometry library, which projects the sphere onto the six faces of a cube and divides each face into a hierarchy of cells along a Hilbert curve. The token is the 64-bit cell id in lowercase hexadecimal with the trailing zeros removed, so larger cells have shorter tokens, up to 16 characters. The top three bits hold the cube face (0 to 5), so a token begins with 0-9, a or b and does not end in 0; the id 0 is written X. The regexp only checks this shape, so it also matches other short hexadecimal strings."@en ;
    skos:example "89c25" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?:[1-9ab]|[0-9ab][0-9a-f]{0,14}[1-9a-f])$" ;
    rdfs:seeAlso <http://s2geometry.io/devguide/s2cell_hierarchy> ;
    rdfs:seeAlso <https://github.com/google/s2geometry/blob/master/src/s2/s2cell_id.h> .
