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:
authorhodlbod <jstaab@protonmail.com>2024-09-03 13:56:56 -0700
committerGitHub <noreply@github.com>2024-09-03 13:56:56 -0700
commitc02b161d9ed8f2edb7633b467ad2dd25252ed55c (patch)
tree0a9198bac9d1976cf0744c30516400ee5cff26aa /32.md
parent378dfaa5dbf44bd1f17fd70f8727b636b7c99239 (diff)
parentc8dc1eadffe0ff894ec39e291c5b28bb18e6db9e (diff)
Merge pull request #1477 from kehiy/jsonc
format(all): JSON formatting
Diffstat (limited to '32.md')
-rw-r--r--32.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/32.md b/32.md
index e06cad5..66f0283 100644
--- a/32.md
+++ b/32.md
@@ -57,7 +57,7 @@ Example events
57 57
58A suggestion that multiple pubkeys be associated with the `permies` topic. 58A 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
73A report flagging violence toward a human being as defined by ontology.example.com. 73A 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
88A moderation suggestion for a chat event. 88A 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
102Assignment of a license to an event. 102Assignment 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
116Publishers can self-label by adding `l` tags to their own non-1985 events. In this case, the kind 1 event's author 116Publishers can self-label by adding `l` tags to their own non-1985 events. In this case, the kind 1 event's author
117is labeling their note as being related to Milan, Italy using ISO 3166-2. 117is 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
131Author is labeling their note language as English using ISO-639-1. 131Author 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
171Appendix: Known Ontologies 171Appendix: Known Ontologies
172------------------------- 172--------------------------
173 173
174Below is a non-exhaustive list of ontologies currently in widespread use. 174Below is a non-exhaustive list of ontologies currently in widespread use.
175 175