Remove label annotations from NIP 32

This commit is contained in:
Jon Staab 2023-11-09 13:05:31 -08:00 committed by fiatjaf_
parent 05cad663f8
commit c945d8bd9d

17
32.md
View File

@ -6,7 +6,7 @@ Labeling
`draft` `optional` `author:staab` `author:gruruya` `author:s3x-jay` `draft` `optional` `author:staab` `author:gruruya` `author:s3x-jay`
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. 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.
Label Target Label Target
---- ----
@ -41,16 +41,6 @@ MAY be used when the label content is provided by an end user.
`l` and `L` tags MAY be added to other event kinds to support self-reporting. For events `l` and `L` tags MAY be added to other event kinds to support self-reporting. For events
with a kind other than 1985, labels refer to the event itself. with a kind other than 1985, labels refer to the event itself.
Label Annotations
-----
A label tag MAY include a 4th positional element detailing extra metadata about the label in question. This string
should be a json-encoded object. Any key MAY be used, but the following are recommended:
- `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).
- `confidence` may have a value of 0 to 1. This indicates the certainty which the author has about their rating.
- `context` may be an array of urls (including NIP-21 urls) indicating other context that should be considered when interpreting labels.
Content Content
------- -------
@ -83,8 +73,9 @@ A review of a relay.
"kind": 1985, "kind": 1985,
"tags": [ "tags": [
["L", "com.example.ontology"], ["L", "com.example.ontology"],
["l", "relay/review", "com.example.ontology", "{\"quality\": 0.1}"], ["l", "relay/review", "com.example.ontology"],
["r", <relay_url>] ["r", <relay_url>],
["rating", "0.1"]
], ],
"content": "This relay is full of mean people.", "content": "This relay is full of mean people.",
... ...