diff options
Diffstat (limited to '32.md')
| -rw-r--r-- | 32.md | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -28,14 +28,15 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi | |||
| 28 | Label Tag | 28 | Label Tag |
| 29 | ---- | 29 | ---- |
| 30 | 30 | ||
| 31 | This 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: | 31 | This 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 |
| 41 | namespace rather than by a specific tag. The special `ugc` ("user generated content") namespace | 42 | namespace rather than by a specific tag. The special `ugc` ("user generated content") namespace |
| @@ -58,7 +59,7 @@ Content | |||
| 58 | ------- | 59 | ------- |
| 59 | 60 | ||
| 60 | Labels should be short, meaningful strings. Longer discussions, such as for a review, or an | 61 | Labels should be short, meaningful strings. Longer discussions, such as for a review, or an |
| 61 | explanation of why something was labeled the way it was should go in the event's `content` field. | 62 | explanation of why something was labeled the way it was, should go in the event's `content` field. |
| 62 | 63 | ||
| 63 | Example events | 64 | Example 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.", |