diff options
| author | Alex Gleason <alex@alexgleason.me> | 2026-01-30 11:25:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-30 09:25:30 -0800 |
| commit | 06593632a83563a2a4172901209ae10beb5decfa (patch) | |
| tree | 3e67d0479c674d6e43216032b9d7816182cdf5aa /73.md | |
| parent | d071018d5a38e1a8a338bd81684fc3029705f5b9 (diff) | |
Add ISO 3166 countries to NIP-73 (#2205)
Diffstat (limited to '73.md')
| -rw-r--r-- | 73.md | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -18,6 +18,7 @@ There are certain established global content identifiers such as [Book ISBNs](ht | |||
| 18 | | URLs | "`<URL, normalized, no fragment>`" | "web" | | 18 | | URLs | "`<URL, normalized, no fragment>`" | "web" | |
| 19 | | Books | "isbn:`<id, without hyphens>`" | "isbn" | | 19 | | Books | "isbn:`<id, without hyphens>`" | "isbn" | |
| 20 | | Geohashes | "geo:`<geohash, lowercase>`" | "geo" | | 20 | | Geohashes | "geo:`<geohash, lowercase>`" | "geo" | |
| 21 | | Countries | "iso3166:`<code, uppercase>`" | "iso3166" | | ||
| 21 | | Movies | "isan:`<id, without version part>`" | "isan" | | 22 | | Movies | "isan:`<id, without version part>`" | "isan" | |
| 22 | | Papers | "doi:`<id, lowercase>`" | "doi" | | 23 | | Papers | "doi:`<id, lowercase>`" | "doi" | |
| 23 | | Hashtags | "#`<topic, lowercase>`" | "#" | | 24 | | Hashtags | "#`<topic, lowercase>`" | "#" | |
| @@ -43,6 +44,21 @@ For the webpage "https://myblog.example.com/post/2012-03-27/hello-world" the "i" | |||
| 43 | ] | 44 | ] |
| 44 | ``` | 45 | ``` |
| 45 | 46 | ||
| 47 | ### Geohashes: | ||
| 48 | |||
| 49 | - Geohash: `["i", "geo:ezs42e44yx96"]` - https://www.movable-type.co.uk/scripts/geohash.html | ||
| 50 | |||
| 51 | Geohashes are a geocoding system that encodes geographic locations into short strings of letters and digits. They MUST be lowercase. | ||
| 52 | |||
| 53 | ### Countries: | ||
| 54 | |||
| 55 | ISO 3166 codes can reference countries (ISO 3166-1 alpha-2) or subdivisions like states/provinces (ISO 3166-2). | ||
| 56 | |||
| 57 | - Country (Venezuela): `["i", "iso3166:VE"]` | ||
| 58 | - Subdivision (California, USA): `["i", "iso3166:US-CA"]` | ||
| 59 | |||
| 60 | ISO 3166 codes MUST be uppercase. More info: https://en.wikipedia.org/wiki/ISO_3166 | ||
| 61 | |||
| 46 | ### Books: | 62 | ### Books: |
| 47 | 63 | ||
| 48 | - Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030 | 64 | - Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030 |