diff options
| author | Oscar Merry <oscardmerry@gmail.com> | 2024-09-20 16:21:15 +0100 |
|---|---|---|
| committer | Oscar Merry <oscardmerry@gmail.com> | 2024-09-20 16:21:15 +0100 |
| commit | 79786bb7bbb32162c233d99850cb33b379c2fc7a (patch) | |
| tree | a2a44e8515bbea9991a4a975881496c18728d2a6 /73.md | |
| parent | ff39a11611a7f4732550e55d03286c5b1d17467e (diff) | |
Expand External Content IDs
Diffstat (limited to '73.md')
| -rw-r--r-- | 73.md | 24 |
1 files changed, 18 insertions, 6 deletions
| @@ -6,17 +6,29 @@ External Content IDs | |||
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | There are certain established global content identifiers that would be useful to reference in nostr events so that clients can query all events assosiated with these ids. | 9 | There are certain established global content identifiers such as [Book ISBNs](https://en.wikipedia.org/wiki/ISBN), [Podcast GUIDs](https://podcastnamespace.org/tag/guid), and [Movie ISANs](https://en.wikipedia.org/wiki/International_Standard_Audiovisual_Number) that are useful to reference in nostr events so that clients can query all the events assosiated with these ids. |
| 10 | 10 | ||
| 11 | - Book [ISBNs](https://en.wikipedia.org/wiki/ISBN) | ||
| 12 | - Podcast [GUIDs](https://podcastnamespace.org/tag/guid) | ||
| 13 | - Movie [ISANs](https://en.wikipedia.org/wiki/International_Standard_Audiovisual_Number) | ||
| 14 | |||
| 15 | Since the `i` tag is already used for similar references in kind-0 metadata events it makes sense to use it for these content ids as well. | ||
| 16 | 11 | ||
| 12 | `i` tags are used for referencing these external content ids, with `k` tags representing the external content id kind so that clients can query all the events for a specific kind. | ||
| 17 | 13 | ||
| 18 | ## Supported IDs | 14 | ## Supported IDs |
| 19 | 15 | ||
| 16 | | Type | `i` tag | `k` tag | | ||
| 17 | |- | - | - | | ||
| 18 | | URLs | "`<URL, normalized, no fragment>`" | "`<scheme-host, normalized>`" | | ||
| 19 | | Hashtags | "#`<topic, lowercase>`" | "#" | | ||
| 20 | | Geohashes| "geo:`<geohash, lowercase>`" | "geo" | | ||
| 21 | | Books | "isbn:`<id, without hyphens>`" | "isbn" | | ||
| 22 | | Podcast Feeds | "podcast:guid:`<guid>`" | "podcast:guid" | | ||
| 23 | | Podcast Episodes | "podcast:item:guid:`<guid>`" | "podcast:item:guid" | | ||
| 24 | | Podcast Publishers | "podcast:publisher:guid:`<guid>`" | "podcast:publisher:guid" | | ||
| 25 | | Movies | "isan:`<id, without version part>`" | "isan" | | ||
| 26 | | Papers | "doi:`<id, lowercase>`" | "doi" | | ||
| 27 | |||
| 28 | --- | ||
| 29 | |||
| 30 | ## Examples | ||
| 31 | |||
| 20 | ### Books: | 32 | ### Books: |
| 21 | 33 | ||
| 22 | - Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030 | 34 | - Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030 |