@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:huggingface_access_token a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "huggingface_access_token" ;
    skos:prefLabel "Hugging Face access token"@en ;
    skos:definition "User access token of the Hugging Face Hub, used in place of a password for git, as a bearer token for Inference Providers and in the Hugging Face Python libraries. It starts with hf_ followed by 34 letters and digits. Organization API tokens have the same length and the prefix api_org_."@en ;
    skos:broader dt:access_token ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?:hf_|api_org_)[A-Za-z0-9]{34}$" ;
    rdfs:seeAlso <https://huggingface.co/docs/hub/security-tokens> ;
    rdfs:seeAlso <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml> ;
    rdfs:seeAlso <https://github.com/trufflesecurity/trufflehog/blob/main/pkg/detectors/huggingface/huggingface.go> .
