@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:ddi_agency_id a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:topConceptOf <https://registry.apicrafter.io/> ;
    skos:notation "ddi_agency_id" ;
    skos:prefLabel "DDI agency identifier"@en ;
    skos:definition "Identifier of an organization that maintains metadata in the Data Documentation Initiative (DDI) standard, such as a national statistics office, a data archive or a survey project. The organization registers it in the DDI Agency Registry in the form country code, dot, name (for example dk.dst; international bodies use int, as in int.esseric), and may extend it with sub-agency labels separated by dots (us.mpc.ipums). The DDI Lifecycle schema allows labels of letters, digits and hyphens, up to 63 characters each and 253 in total. It also accepts a single label, but the identifiers listed in the registry all have a prefix, so the regexp requires at least one dot and a first label of two or three letters (the country code or int). Without that, dates such as 01.01.2015 and decimal numbers matched. The agency identifier is the namespace part of DDI URNs (urn:ddi:<agency>:<id>:<version>) and the registration authority in ISO/IEC 11179-6 identifiers (IRDI)."@en ;
    skos:prefLabel "Identifiant d'agence DDI"@fr ;
    skos:prefLabel "Идентификатор агентства DDI"@ru ;
    skos:example "dk.dst" ;
    skos:example "ca.statcan" ;
    skos:example "fr.insee" ;
    skos:example "us.mpc.ipums" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?=.{3,253}$)[A-Za-z]{2,3}(?:\\.[A-Za-z0-9-]{1,63})+$" ;
    rdfs:seeAlso <https://registry.ddialliance.org/Agency> ;
    rdfs:seeAlso <https://docs.ddialliance.org/DDI-Lifecycle/3.3/xmlschema/schemas/reusable_xsd/simpleTypes/DDIAgencyIDType.html> ;
    rdfs:seeAlso <https://docs.ddialliance.org/DDI-Lifecycle/guide/General%20Structures/Identification/> .
