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-24 12:42:26 -0700
committerJonathan Staab <shtaab@gmail.com>2023-06-13 09:31:15 -0700
commit4e8f3adf43afae1944ade2a5031eebf5de0e1fd2 (patch)
tree965324737bbcc3fc8aafc7680a39f7999b745228
parent2372874b98fd109cfa517532a276cec456e738f8 (diff)
Recommend qualified names for label namespaces
-rw-r--r--32.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/32.md b/32.md
index 161af53..858e637 100644
--- a/32.md
+++ b/32.md
@@ -28,14 +28,15 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi
28Label Tag 28Label Tag
29---- 29----
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. 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
33- `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied. 33- `["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>` 34- `["l", "<pubkey>", "#p"]` - the publisher things the given entity should be tagged with with `<pubkey>`
35- `["l", "D005528", "MeSH"]` - ["Foot"](https://meshb.nlm.nih.gov/record/ui?ui=D005528) from NIH's Medical Subject Headings vocabulary 35- `["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 36- `["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. 37- `["l", "IT-MI", "ISO-3166-2"]` - Milano, Italy using ISO 3166-2.
38- `["l", "relay", "review"]` - the publisher is leaving a review about a relay. 38- `["l", "VI-hum", "social.nos.ontology"]` - Violence toward a human being as defined by ontology.nos.social.
39- `["l", "review", "social.coracle.ontology"]` - the publisher is leaving a review about the target, as defined by ontology.coracle.social.
39 40
40`L` tags containing the label namespaces MUST be included in order to support searching by 41`L` tags containing the label namespaces MUST be included in order to support searching by
41namespace rather than by a specific tag. The special `ugc` ("user generated content") namespace 42namespace rather than by a specific tag. The special `ugc` ("user generated content") namespace
@@ -58,7 +59,7 @@ Content
58------- 59-------
59 60
60Labels should be short, meaningful strings. Longer discussions, such as for a review, or an 61Labels should be short, meaningful strings. Longer discussions, such as for a review, or an
61explanation of why something was labeled the way it was should go in the event's `content` field. 62explanation of why something was labeled the way it was, should go in the event's `content` field.
62 63
63Example events 64Example events
64-------------- 65--------------
@@ -143,8 +144,8 @@ A plain review of a relay.
143{ 144{
144 "kind": 1985, 145 "kind": 1985,
145 "tags": [ 146 "tags": [
146 ["L", "review"], 147 ["L", "social.coracle.ontology"],
147 ["l", "relay", "review", "{\"quality\": 0.1}"], 148 ["l", "review", "social.coracle.ontology", "{\"quality\": 0.1}"],
148 ["r", <relay_url>] 149 ["r", <relay_url>]
149 ], 150 ],
150 "content": "This relay is full of mean people.", 151 "content": "This relay is full of mean people.",