Skip to content

Commit

Permalink
Remove label annotations from NIP 32
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab authored and fiatjaf committed Nov 10, 2023
1 parent 05cad66 commit c945d8b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions 32.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----
Expand Down Expand Up @@ -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
-------

Expand Down Expand Up @@ -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.",
...
Expand Down

0 comments on commit c945d8b

Please sign in to comment.