ISO 3166 Vocabulary
- Latest version:
- http://downlode.org/rdf/iso-3166/
- Previous version:
- n/a
- Revision date:
- 03 December 2005
- Author:
- Earle Martin
Copyright © 2005 Earle Martin.
This work is licensed under a Creative
Commons License. This copyright applies to the ISO 3166 Vocabulary documentation
and does not apply to the ISO 3166 Vocabulary data formats, vocabulary terms, or
technology. Regarding underlying technology, the ISO 3166 Vocabulary relies heavily on
W3C's
RDF
technology, an open Web standard that can be freely used by anyone.
Abstract
This resource acts as a simple representation of the ISO 3166 definitions of country names.Usage
Following is an example of a simple RDF document, using WAIL and this vocabulary, referencing the United Kingdom.
<rdf:RDF xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wail = "http://www.eyrie.org/~zednenem/2002/wail/" > <rdf:Description> <dc:title>Something</dc:title> <wail:locatedIn> <wail:Country rdf:about="http://downlode.org/rdf/iso-3166#GB" /> </wail:locatedIn> </rdf:Description> </rdf:RDF>
Note the URI pointing to the fragment of the schema that represents the United Kingdom. The country IDs should be referred to in uppercase (in this case, "GB").
Defining schema
The list of countries is defined using a simple RDF
schema. It has one class, Country, whose properties are:
name_en- The name of the country, in English.
name_fr- The name of the country, in French.
alpha_2- The country's ISO 3166 alpha-2 (two-letter alphabetic) identifier.
alpha_3- The country's ISO 3166 alpha-3 (three-letter alphabetic) identifier.
Here is an example block from the vocabulary, describing the United Kingdom.
<Country rdf:ID="GB"> <name_en>United Kingdom</name_en> <name_fr>Royaume-Uni</name_fr> <alpha_2>GB</alpha_2> <alpha_3>GBR</alpha_3> </Country>
To see the full list, view the source of this page.
See also
Nearby: ISO 639 Vocabulary.
For a Perl utility to determine associations between ISO 639-1 and 639-2 country codes and ISO 3166 country codes, see Locale::Object.
Acknowledgements
Parts of the layout of this document and the licensing information were adapted from the FOAF Vocabulary Specification by Dan Brickley and Libby Miller.