upleb.uk

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

summaryrefslogtreecommitdiff
path: root/32.md
diff options
context:
space:
mode:
authorJon Staab <shtaab@gmail.com>2023-11-09 13:05:31 -0800
committerfiatjaf_ <fiatjaf@gmail.com>2023-11-10 07:02:43 -0300
commitc945d8bd9d14f928b52ba20e0441f311b046f0f6 (patch)
treeb08bd4c664d045f8283f14b341f8828b34af9289 /32.md
parent05cad663f8f4eb022620e2e27f0761733f05ce14 (diff)
Remove label annotations from NIP 32
Diffstat (limited to '32.md')
-rw-r--r--32.md17
1 files changed, 4 insertions, 13 deletions
diff --git a/32.md b/32.md
index ddd364a..c5c6272 100644
--- a/32.md
+++ b/32.md
@@ -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
9A 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. 9A 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
11Label Target 11Label 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
42with a kind other than 1985, labels refer to the event itself. 42with a kind other than 1985, labels refer to the event itself.
43 43
44Label Annotations
45-----
46
47A label tag MAY include a 4th positional element detailing extra metadata about the label in question. This string
48should 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
54Content 44Content
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 ...