mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
Remove label annotations from NIP 32
This commit is contained in:
parent
05cad663f8
commit
c945d8bd9d
17
32.md
17
32.md
|
@ -6,7 +6,7 @@ Labeling
|
|||
|
||||
`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
|
||||
----
|
||||
|
@ -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
|
||||
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
|
||||
-------
|
||||
|
||||
|
@ -83,8 +73,9 @@ A review of a relay.
|
|||
"kind": 1985,
|
||||
"tags": [
|
||||
["L", "com.example.ontology"],
|
||||
["l", "relay/review", "com.example.ontology", "{\"quality\": 0.1}"],
|
||||
["r", <relay_url>]
|
||||
["l", "relay/review", "com.example.ontology"],
|
||||
["r", <relay_url>],
|
||||
["rating", "0.1"]
|
||||
],
|
||||
"content": "This relay is full of mean people.",
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue
Block a user