diff options
| author | Jon Staab <shtaab@gmail.com> | 2023-11-09 13:05:31 -0800 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-11-10 07:02:43 -0300 |
| commit | c945d8bd9d14f928b52ba20e0441f311b046f0f6 (patch) | |
| tree | b08bd4c664d045f8283f14b341f8828b34af9289 /32.md | |
| parent | 05cad663f8f4eb022620e2e27f0761733f05ce14 (diff) | |
Remove label annotations from NIP 32
Diffstat (limited to '32.md')
| -rw-r--r-- | 32.md | 17 |
1 files changed, 4 insertions, 13 deletions
| @@ -6,7 +6,7 @@ Labeling | |||
| 6 | 6 | ||
| 7 | `draft` `optional` `author:staab` `author:gruruya` `author:s3x-jay` | 7 | `draft` `optional` `author:staab` `author:gruruya` `author:s3x-jay` |
| 8 | 8 | ||
| 9 | A label is a `kind 1985` event that is used to label other entities. This supports a number of use cases, from distributed moderation and content recommendations to reviews and ratings. | 9 | A label is a `kind 1985` event that is used to label other entities. This supports a number of use cases, including distributed moderation, collection management, license assignment, and content classification. |
| 10 | 10 | ||
| 11 | Label Target | 11 | Label Target |
| 12 | ---- | 12 | ---- |
| @@ -41,16 +41,6 @@ MAY be used when the label content is provided by an end user. | |||
| 41 | `l` and `L` tags MAY be added to other event kinds to support self-reporting. For events | 41 | `l` and `L` tags MAY be added to other event kinds to support self-reporting. For events |
| 42 | with a kind other than 1985, labels refer to the event itself. | 42 | with a kind other than 1985, labels refer to the event itself. |
| 43 | 43 | ||
| 44 | Label Annotations | ||
| 45 | ----- | ||
| 46 | |||
| 47 | A label tag MAY include a 4th positional element detailing extra metadata about the label in question. This string | ||
| 48 | should be a json-encoded object. Any key MAY be used, but the following are recommended: | ||
| 49 | |||
| 50 | - `quality` may have a value of 0 to 1. This allows for an absolute, granular scale that can be represented in any way (5 stars, color scale, etc). | ||
| 51 | - `confidence` may have a value of 0 to 1. This indicates the certainty which the author has about their rating. | ||
| 52 | - `context` may be an array of urls (including NIP-21 urls) indicating other context that should be considered when interpreting labels. | ||
| 53 | |||
| 54 | Content | 44 | Content |
| 55 | ------- | 45 | ------- |
| 56 | 46 | ||
| @@ -83,8 +73,9 @@ A review of a relay. | |||
| 83 | "kind": 1985, | 73 | "kind": 1985, |
| 84 | "tags": [ | 74 | "tags": [ |
| 85 | ["L", "com.example.ontology"], | 75 | ["L", "com.example.ontology"], |
| 86 | ["l", "relay/review", "com.example.ontology", "{\"quality\": 0.1}"], | 76 | ["l", "relay/review", "com.example.ontology"], |
| 87 | ["r", <relay_url>] | 77 | ["r", <relay_url>], |
| 78 | ["rating", "0.1"] | ||
| 88 | ], | 79 | ], |
| 89 | "content": "This relay is full of mean people.", | 80 | "content": "This relay is full of mean people.", |
| 90 | ... | 81 | ... |