@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:gbpostcode a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "gbpostcode" ;
    skos:prefLabel "UK postcode"@en ;
    skos:definition "Postcode in the United Kingdom: an outward code (a postcode area of one or two letters and a district of one or two characters) and an inward code (a digit and two letters), usually separated by a space, as in EC1A 1HQ. GIR 0AA and British Forces BFPO numbers are special cases. The regular expression is the one of Google's address metadata."@en ;
    skos:broader dt:postindex ;
    skos:exactMatch <https://schema.org/postalCode> ;
    skos:broadMatch <https://w3id.org/dpv/pd#PostalCode> ;
    skos:example "EC1Y 8SY" ;
    skos:example "M2 5BQ" ;
    skos:example "CR0 2YR" ;
    skos:example "DN16 9AA" ;
    skos:example "W1A 4ZZ" ;
    skos:example "GIR 0AA" ;
    skos:example "BFPO 61" ;
    mcr:status "stable" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^(?:GIR ?0AA|(?:AB|AL|B|BA|BB|BD|BF|BH|BL|BN|BR|BS|BT|BX|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)\\d[\\dA-Z]? ?\\d[ABD-HJLN-UW-Z]{2}|BFPO ?\\d{1,4})$" ;
    dcterms:spatial country:GB ;
    dcterms:language <http://id.loc.gov/vocabulary/iso639-1/en> ;
    rdfs:seeAlso <https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom> ;
    rdfs:seeAlso <https://chromium-i18n.appspot.com/ssl-address/data/GB> .
