upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Staab <shtaab@gmail.com>2023-05-25 10:22:35 -0700
committerJonathan Staab <shtaab@gmail.com>2023-06-13 09:31:15 -0700
commit057d097e741453895164590d1c56fe87703c2c97 (patch)
treed5b441ab0f0634cdcb5796029eadeae8aa56ce10
parent4e8f3adf43afae1944ade2a5031eebf5de0e1fd2 (diff)
Add an example for self-tagging, clarify # labels
-rw-r--r--32.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/32.md b/32.md
index 858e637..dd2f50c 100644
--- a/32.md
+++ b/32.md
@@ -30,8 +30,10 @@ Label Tag
30 30
31This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace. A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples: 31This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace. A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples:
32 32
33Namespaces starting with `#` indicate that the label target should be associated with the label's value. This is a way of attaching standard nostr tags to events, pubkeys, relays, urls, etc.
34
33- `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied. 35- `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied.
34- `["l", "<pubkey>", "#p"]` - the publisher things the given entity should be tagged with with `<pubkey>` 36- `["l", "<pubkey>", "#p"]` - the publisher thinks the given entity is related to `<pubkey>`
35- `["l", "D005528", "MeSH"]` - ["Foot"](https://meshb.nlm.nih.gov/record/ui?ui=D005528) from NIH's Medical Subject Headings vocabulary 37- `["l", "D005528", "MeSH"]` - ["Foot"](https://meshb.nlm.nih.gov/record/ui?ui=D005528) from NIH's Medical Subject Headings vocabulary
36- `["l", "3173435", "GeoNames"]` - [Milan, Italy](https://www.geonames.org/3173435/milan.html) using the GeoNames coding system 38- `["l", "3173435", "GeoNames"]` - [Milan, Italy](https://www.geonames.org/3173435/milan.html) using the GeoNames coding system
37- `["l", "IT-MI", "ISO-3166-2"]` - Milano, Italy using ISO 3166-2. 39- `["l", "IT-MI", "ISO-3166-2"]` - Milano, Italy using ISO 3166-2.
@@ -170,3 +172,17 @@ this spec provides for overlaying structured metadata on top of nostr.
170 ... 172 ...
171} 173}
172``` 174```
175
176Publishers can self-label by adding `l` tags to their own non-1985 events.
177
178```json
179{
180 "kind": 1,
181 "tags": [
182 ["L", "social.nos.ontology"],
183 ["l", "IL-frd", "social.nos.ontology"]
184 ],
185 "content": "Send me 100 sats and I'll send you 200 back",
186 ...
187}
188```