full diff

pub.chive.review.entityLink

From
bafyreidacwxoqgwzg7jx6edwapmag2uru2g2p3skpxwszifzo4szz3i7oi indexed 2026-06-18 13:14 UTC View this version
To
bafyreidacwxoqgwzg7jx6edwapmag2uru2g2p3skpxwszifzo4szz3i7oi indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "authorLink": {
55 "description": "Link to an ATProto author",
66 "properties": {
77 "did": {
88 "description": "Author's DID",
99 "format": "did",
1010 "type": "string"
1111 },
1212 "displayName": {
1313 "description": "Author's display name",
1414 "type": "string"
1515 },
1616 "handle": {
1717 "description": "Author's handle",
1818 "format": "handle",
1919 "type": "string"
2020 },
2121 "orcid": {
2222 "description": "Author's ORCID (if available)",
2323 "type": "string"
2424 },
2525 "type": {
2626 "const": "author",
2727 "type": "string"
2828 }
2929 },
3030 "required": [
3131 "type",
3232 "did",
3333 "displayName"
3434 ],
3535 "type": "object"
3636 },
3737 "eprintLink": {
3838 "description": "Link to another eprint/preprint",
3939 "properties": {
4040 "doi": {
4141 "description": "DOI if available",
4242 "type": "string"
4343 },
4444 "title": {
4545 "description": "Eprint title",
4646 "type": "string"
4747 },
4848 "type": {
4949 "const": "eprint",
5050 "type": "string"
5151 },
5252 "uri": {
5353 "description": "AT-URI of the eprint",
5454 "format": "at-uri",
5555 "type": "string"
5656 }
5757 },
5858 "required": [
5959 "type",
6060 "uri",
6161 "title"
6262 ],
6363 "type": "object"
6464 },
6565 "externalIdLink": {
6666 "description": "Link to an external identifier (Wikidata, ROR, ORCID, etc.)",
6767 "properties": {
6868 "identifier": {
6969 "description": "Identifier value (e.g., Q42 for Wikidata)",
7070 "type": "string"
7171 },
7272 "label": {
7373 "description": "Display label for the entity",
7474 "type": "string"
7575 },
7676 "system": {
7777 "description": "External identifier system",
7878 "knownValues": [
7979 "wikidata",
8080 "ror",
8181 "orcid",
8282 "isni",
8383 "viaf",
8484 "lcsh",
8585 "fast",
8686 "credit",
8787 "spdx",
8888 "fundref",
8989 "mesh",
9090 "aat",
9191 "gnd",
9292 "anzsrc",
9393 "arxiv",
9494 "doi",
9595 "pmid",
9696 "pmcid"
9797 ],
9898 "type": "string"
9999 },
100100 "type": {
101101 "const": "externalId",
102102 "type": "string"
103103 },
104104 "uri": {
105105 "description": "Full URI for the external entity",
106106 "format": "uri",
107107 "type": "string"
108108 }
109109 },
110110 "required": [
111111 "type",
112112 "system",
113113 "identifier",
114114 "label"
115115 ],
116116 "type": "object"
117117 },
118118 "graphNodeLink": {
119119 "description": "Link to a knowledge graph node (type or object, with optional subkind)",
120120 "properties": {
121121 "id": {
122122 "description": "Node UUID identifier",
123123 "type": "string"
124124 },
125125 "kind": {
126126 "description": "Node kind: 'type' for classifications, 'object' for instances",
127127 "knownValues": [
128128 "type",
129129 "object"
130130 ],
131131 "type": "string"
132132 },
133133 "label": {
134134 "description": "Display label for the node",
135135 "type": "string"
136136 },
137137 "slug": {
138138 "description": "Human-readable slug (e.g., 'computer-science')",
139139 "type": "string"
140140 },
141141 "subkind": {
142142 "description": "Subkind slug (e.g., 'field', 'facet', 'institution', 'contribution-type')",
143143 "type": "string"
144144 },
145145 "subkindUri": {
146146 "description": "AT-URI of the subkind type node",
147147 "format": "at-uri",
148148 "type": "string"
149149 },
150150 "type": {
151151 "const": "graphNode",
152152 "type": "string"
153153 },
154154 "uri": {
155155 "description": "AT-URI of the graph node",
156156 "format": "at-uri",
157157 "type": "string"
158158 }
159159 },
160160 "required": [
161161 "type",
162162 "uri",
163163 "label",
164164 "kind"
165165 ],
166166 "type": "object"
167167 },
168168 "main": {
169169 "description": "Link from a text span in a preprint to a knowledge graph entity",
170170 "key": "tid",
171171 "record": {
172172 "properties": {
173173 "confidence": {
174174 "description": "Confidence score for the link (scaled by 1000 for 0.0-1.0 range)",
175175 "maximum": 1000,
176176 "minimum": 0,
177177 "type": "integer"
178178 },
179179 "createdAt": {
180180 "format": "datetime",
181181 "type": "string"
182182 },
183183 "eprintUri": {
184184 "description": "AT-URI of the eprint containing the linked text",
185185 "format": "at-uri",
186186 "type": "string"
187187 },
188188 "linkedEntity": {
189189 "description": "The entity being linked to",
190190 "refs": [
191191 "#graphNodeLink",
192192 "#externalIdLink",
193193 "#authorLink",
194194 "#eprintLink"
195195 ],
196196 "type": "union"
197197 },
198198 "schemaRevision": {
199199 "description": "Schema revision this record was created with. Absent means revision 1.",
200200 "minimum": 1,
201201 "type": "integer"
202202 },
203203 "target": {
204204 "description": "Text span being linked to an entity",
205205 "ref": "#textSpanTarget",
206206 "type": "ref"
207207 }
208208 },
209209 "required": [
210210 "eprintUri",
211211 "target",
212212 "linkedEntity",
213213 "createdAt"
214214 ],
215215 "type": "object"
216216 },
217217 "type": "record"
218218 },
219219 "textPositionSelector": {
220220 "description": "W3C TextPositionSelector for character-based targeting",
221221 "properties": {
222222 "end": {
223223 "description": "End character offset",
224224 "minimum": 0,
225225 "type": "integer"
226226 },
227227 "pageNumber": {
228228 "description": "Page number in the document",
229229 "minimum": 1,
230230 "type": "integer"
231231 },
232232 "start": {
233233 "description": "Start character offset",
234234 "minimum": 0,
235235 "type": "integer"
236236 },
237237 "type": {
238238 "const": "TextPositionSelector",
239239 "type": "string"
240240 }
241241 },
242242 "required": [
243243 "type",
244244 "start",
245245 "end",
246246 "pageNumber"
247247 ],
248248 "type": "object"
249249 },
250250 "textQuoteSelector": {
251251 "description": "W3C TextQuoteSelector for resilient text matching",
252252 "properties": {
253253 "exact": {
254254 "description": "The exact text to match",
255255 "type": "string"
256256 },
257257 "prefix": {
258258 "description": "Text immediately before the match",
259259 "maxLength": 32,
260260 "type": "string"
261261 },
262262 "suffix": {
263263 "description": "Text immediately after the match",
264264 "maxLength": 32,
265265 "type": "string"
266266 },
267267 "type": {
268268 "const": "TextQuoteSelector",
269269 "type": "string"
270270 }
271271 },
272272 "required": [
273273 "type",
274274 "exact"
275275 ],
276276 "type": "object"
277277 },
278278 "textSpanTarget": {
279279 "description": "W3C Web Annotation target for text spans",
280280 "properties": {
281281 "refinedBy": {
282282 "description": "Optional position selector for precise targeting",
283283 "ref": "#textPositionSelector",
284284 "type": "ref"
285285 },
286286 "selector": {
287287 "description": "Primary selector for resilient text matching",
288288 "ref": "#textQuoteSelector",
289289 "type": "ref"
290290 },
291291 "source": {
292292 "description": "AT-URI of the source document",
293293 "format": "at-uri",
294294 "type": "string"
295295 }
296296 },
297297 "required": [
298298 "source",
299299 "selector"
300300 ],
301301 "type": "object"
302302 }
303303 },
304304 "id": "pub.chive.review.entityLink",
305305 "lexicon": 1,
306306 "revision": 1
307307}