diff options
Diffstat (limited to '32.md')
| -rw-r--r-- | 32.md | 26 |
1 files changed, 13 insertions, 13 deletions
| @@ -57,7 +57,7 @@ Example events | |||
| 57 | 57 | ||
| 58 | A suggestion that multiple pubkeys be associated with the `permies` topic. | 58 | A suggestion that multiple pubkeys be associated with the `permies` topic. |
| 59 | 59 | ||
| 60 | ```json | 60 | ```jsonc |
| 61 | { | 61 | { |
| 62 | "kind": 1985, | 62 | "kind": 1985, |
| 63 | "tags": [ | 63 | "tags": [ |
| @@ -66,13 +66,13 @@ A suggestion that multiple pubkeys be associated with the `permies` topic. | |||
| 66 | ["p", <pubkey1>, <relay_url>], | 66 | ["p", <pubkey1>, <relay_url>], |
| 67 | ["p", <pubkey2>, <relay_url>] | 67 | ["p", <pubkey2>, <relay_url>] |
| 68 | ], | 68 | ], |
| 69 | ... | 69 | // other fields... |
| 70 | } | 70 | } |
| 71 | ``` | 71 | ``` |
| 72 | 72 | ||
| 73 | A report flagging violence toward a human being as defined by ontology.example.com. | 73 | A report flagging violence toward a human being as defined by ontology.example.com. |
| 74 | 74 | ||
| 75 | ```json | 75 | ```jsonc |
| 76 | { | 76 | { |
| 77 | "kind": 1985, | 77 | "kind": 1985, |
| 78 | "tags": [ | 78 | "tags": [ |
| @@ -81,13 +81,13 @@ A report flagging violence toward a human being as defined by ontology.example.c | |||
| 81 | ["p", <pubkey1>, <relay_url>], | 81 | ["p", <pubkey1>, <relay_url>], |
| 82 | ["p", <pubkey2>, <relay_url>] | 82 | ["p", <pubkey2>, <relay_url>] |
| 83 | ], | 83 | ], |
| 84 | ... | 84 | // other fields... |
| 85 | } | 85 | } |
| 86 | ``` | 86 | ``` |
| 87 | 87 | ||
| 88 | A moderation suggestion for a chat event. | 88 | A moderation suggestion for a chat event. |
| 89 | 89 | ||
| 90 | ```json | 90 | ```jsonc |
| 91 | { | 91 | { |
| 92 | "kind": 1985, | 92 | "kind": 1985, |
| 93 | "tags": [ | 93 | "tags": [ |
| @@ -95,13 +95,13 @@ A moderation suggestion for a chat event. | |||
| 95 | ["l", "approve", "nip28.moderation"], | 95 | ["l", "approve", "nip28.moderation"], |
| 96 | ["e", <kind40_event_id>, <relay_url>] | 96 | ["e", <kind40_event_id>, <relay_url>] |
| 97 | ], | 97 | ], |
| 98 | ... | 98 | // other fields... |
| 99 | } | 99 | } |
| 100 | ``` | 100 | ``` |
| 101 | 101 | ||
| 102 | Assignment of a license to an event. | 102 | Assignment of a license to an event. |
| 103 | 103 | ||
| 104 | ```json | 104 | ```jsonc |
| 105 | { | 105 | { |
| 106 | "kind": 1985, | 106 | "kind": 1985, |
| 107 | "tags": [ | 107 | "tags": [ |
| @@ -109,14 +109,14 @@ Assignment of a license to an event. | |||
| 109 | ["l", "MIT", "license"], | 109 | ["l", "MIT", "license"], |
| 110 | ["e", <event_id>, <relay_url>] | 110 | ["e", <event_id>, <relay_url>] |
| 111 | ], | 111 | ], |
| 112 | ... | 112 | // other fields... |
| 113 | } | 113 | } |
| 114 | ``` | 114 | ``` |
| 115 | 115 | ||
| 116 | Publishers can self-label by adding `l` tags to their own non-1985 events. In this case, the kind 1 event's author | 116 | Publishers can self-label by adding `l` tags to their own non-1985 events. In this case, the kind 1 event's author |
| 117 | is labeling their note as being related to Milan, Italy using ISO 3166-2. | 117 | is labeling their note as being related to Milan, Italy using ISO 3166-2. |
| 118 | 118 | ||
| 119 | ```json | 119 | ```jsonc |
| 120 | { | 120 | { |
| 121 | "kind": 1, | 121 | "kind": 1, |
| 122 | "tags": [ | 122 | "tags": [ |
| @@ -124,13 +124,13 @@ is labeling their note as being related to Milan, Italy using ISO 3166-2. | |||
| 124 | ["l", "IT-MI", "ISO-3166-2"] | 124 | ["l", "IT-MI", "ISO-3166-2"] |
| 125 | ], | 125 | ], |
| 126 | "content": "It's beautiful here in Milan!", | 126 | "content": "It's beautiful here in Milan!", |
| 127 | ... | 127 | // other fields... |
| 128 | } | 128 | } |
| 129 | ``` | 129 | ``` |
| 130 | 130 | ||
| 131 | Author is labeling their note language as English using ISO-639-1. | 131 | Author is labeling their note language as English using ISO-639-1. |
| 132 | 132 | ||
| 133 | ```json | 133 | ```jsonc |
| 134 | { | 134 | { |
| 135 | "kind": 1, | 135 | "kind": 1, |
| 136 | "tags": [ | 136 | "tags": [ |
| @@ -138,7 +138,7 @@ Author is labeling their note language as English using ISO-639-1. | |||
| 138 | ["l", "en", "ISO-639-1"] | 138 | ["l", "en", "ISO-639-1"] |
| 139 | ], | 139 | ], |
| 140 | "content": "English text", | 140 | "content": "English text", |
| 141 | ... | 141 | // other fields... |
| 142 | } | 142 | } |
| 143 | ``` | 143 | ``` |
| 144 | 144 | ||
| @@ -169,7 +169,7 @@ be handled in some other way. | |||
| 169 | 169 | ||
| 170 | 170 | ||
| 171 | Appendix: Known Ontologies | 171 | Appendix: Known Ontologies |
| 172 | ------------------------- | 172 | -------------------------- |
| 173 | 173 | ||
| 174 | Below is a non-exhaustive list of ontologies currently in widespread use. | 174 | Below is a non-exhaustive list of ontologies currently in widespread use. |
| 175 | 175 | ||