full diff

pub.chive.annotation.entityLink

From
bafyreidv5qurumlqdbm6pr7kolrbajuyrka27axkd5ixyi2bakmogv27uy indexed 2026-06-18 13:14 UTC View this version
To
bafyreidv5qurumlqdbm6pr7kolrbajuyrka27axkd5ixyi2bakmogv27uy 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 "boundingRect": {
3838 "description": "Bounding rectangle coordinates for highlight positioning. All values stored as strings to preserve floating-point precision since ATProto only supports integer type.",
3939 "properties": {
4040 "height": {
4141 "description": "Page height reference (as string to preserve float precision)",
4242 "type": "string"
4343 },
4444 "pageNumber": {
4545 "description": "1-indexed page number for the bounding rectangle",
4646 "minimum": 1,
4747 "type": "integer"
4848 },
4949 "width": {
5050 "description": "Page width reference (as string to preserve float precision)",
5151 "type": "string"
5252 },
5353 "x1": {
5454 "description": "Left edge coordinate (as string to preserve float precision)",
5555 "type": "string"
5656 },
5757 "x2": {
5858 "description": "Right edge coordinate (as string to preserve float precision)",
5959 "type": "string"
6060 },
6161 "y1": {
6262 "description": "Top edge coordinate (as string to preserve float precision)",
6363 "type": "string"
6464 },
6565 "y2": {
6666 "description": "Bottom edge coordinate (as string to preserve float precision)",
6767 "type": "string"
6868 }
6969 },
7070 "required": [
7171 "x1",
7272 "y1",
7373 "x2",
7474 "y2",
7575 "width",
7676 "height",
7777 "pageNumber"
7878 ],
7979 "type": "object"
8080 },
8181 "eprintLink": {
8282 "description": "Link to another eprint/preprint",
8383 "properties": {
8484 "doi": {
8585 "description": "DOI if available",
8686 "type": "string"
8787 },
8888 "title": {
8989 "description": "Eprint title",
9090 "type": "string"
9191 },
9292 "type": {
9393 "const": "eprint",
9494 "type": "string"
9595 },
9696 "uri": {
9797 "description": "AT-URI of the eprint",
9898 "format": "at-uri",
9999 "type": "string"
100100 }
101101 },
102102 "required": [
103103 "type",
104104 "uri",
105105 "title"
106106 ],
107107 "type": "object"
108108 },
109109 "externalIdLink": {
110110 "description": "Link to an external identifier (Wikidata, ROR, ORCID, etc.)",
111111 "properties": {
112112 "identifier": {
113113 "description": "Identifier value (e.g., Q42 for Wikidata)",
114114 "type": "string"
115115 },
116116 "label": {
117117 "description": "Display label for the entity",
118118 "type": "string"
119119 },
120120 "system": {
121121 "description": "External identifier system",
122122 "knownValues": [
123123 "wikidata",
124124 "ror",
125125 "orcid",
126126 "isni",
127127 "viaf",
128128 "lcsh",
129129 "fast",
130130 "credit",
131131 "spdx",
132132 "fundref",
133133 "mesh",
134134 "aat",
135135 "gnd",
136136 "anzsrc",
137137 "arxiv",
138138 "doi",
139139 "pmid",
140140 "pmcid"
141141 ],
142142 "type": "string"
143143 },
144144 "type": {
145145 "const": "externalId",
146146 "type": "string"
147147 },
148148 "uri": {
149149 "description": "Full URI for the external entity",
150150 "format": "uri",
151151 "type": "string"
152152 }
153153 },
154154 "required": [
155155 "type",
156156 "system",
157157 "identifier",
158158 "label"
159159 ],
160160 "type": "object"
161161 },
162162 "graphNodeLink": {
163163 "description": "Link to a knowledge graph node (type or object, with optional subkind)",
164164 "properties": {
165165 "id": {
166166 "description": "Node UUID identifier",
167167 "type": "string"
168168 },
169169 "kind": {
170170 "description": "Node kind: 'type' for classifications, 'object' for instances",
171171 "knownValues": [
172172 "type",
173173 "object"
174174 ],
175175 "type": "string"
176176 },
177177 "label": {
178178 "description": "Display label for the node",
179179 "type": "string"
180180 },
181181 "slug": {
182182 "description": "Human-readable slug (e.g., 'computer-science')",
183183 "type": "string"
184184 },
185185 "subkind": {
186186 "description": "Subkind slug (e.g., 'field', 'facet', 'institution', 'contribution-type')",
187187 "type": "string"
188188 },
189189 "subkindUri": {
190190 "description": "AT-URI of the subkind type node",
191191 "format": "at-uri",
192192 "type": "string"
193193 },
194194 "type": {
195195 "const": "graphNode",
196196 "type": "string"
197197 },
198198 "uri": {
199199 "description": "AT-URI of the graph node",
200200 "format": "at-uri",
201201 "type": "string"
202202 }
203203 },
204204 "required": [
205205 "type",
206206 "uri",
207207 "label",
208208 "kind"
209209 ],
210210 "type": "object"
211211 },
212212 "main": {
213213 "description": "Link from a text span in an eprint to a knowledge graph entity",
214214 "key": "tid",
215215 "record": {
216216 "properties": {
217217 "confidence": {
218218 "description": "Confidence score for the link (scaled by 1000 for 0.0-1.0 range)",
219219 "maximum": 1000,
220220 "minimum": 0,
221221 "type": "integer"
222222 },
223223 "createdAt": {
224224 "format": "datetime",
225225 "type": "string"
226226 },
227227 "eprintUri": {
228228 "description": "AT-URI of the eprint containing the linked text",
229229 "format": "at-uri",
230230 "type": "string"
231231 },
232232 "linkedEntity": {
233233 "description": "The entity being linked to",
234234 "refs": [
235235 "#graphNodeLink",
236236 "#externalIdLink",
237237 "#authorLink",
238238 "#eprintLink"
239239 ],
240240 "type": "union"
241241 },
242242 "schemaRevision": {
243243 "description": "Schema revision this record was created with. Absent means revision 1.",
244244 "minimum": 1,
245245 "type": "integer"
246246 },
247247 "target": {
248248 "description": "Text span being linked to an entity",
249249 "ref": "#textSpanTarget",
250250 "type": "ref"
251251 }
252252 },
253253 "required": [
254254 "eprintUri",
255255 "target",
256256 "linkedEntity",
257257 "createdAt"
258258 ],
259259 "type": "object"
260260 },
261261 "type": "record"
262262 },
263263 "textPositionSelector": {
264264 "description": "W3C TextPositionSelector for character-based targeting",
265265 "properties": {
266266 "boundingRect": {
267267 "description": "Bounding rectangle for visual positioning",
268268 "ref": "#boundingRect",
269269 "type": "ref"
270270 },
271271 "end": {
272272 "description": "End character offset",
273273 "minimum": 0,
274274 "type": "integer"
275275 },
276276 "pageNumber": {
277277 "description": "0-indexed page number in the document",
278278 "minimum": 0,
279279 "type": "integer"
280280 },
281281 "start": {
282282 "description": "Start character offset",
283283 "minimum": 0,
284284 "type": "integer"
285285 },
286286 "type": {
287287 "const": "TextPositionSelector",
288288 "type": "string"
289289 }
290290 },
291291 "required": [
292292 "type",
293293 "start",
294294 "end",
295295 "pageNumber"
296296 ],
297297 "type": "object"
298298 },
299299 "textQuoteSelector": {
300300 "description": "W3C TextQuoteSelector for resilient text matching",
301301 "properties": {
302302 "exact": {
303303 "description": "The exact text to match",
304304 "type": "string"
305305 },
306306 "prefix": {
307307 "description": "Text immediately before the match",
308308 "maxLength": 32,
309309 "type": "string"
310310 },
311311 "suffix": {
312312 "description": "Text immediately after the match",
313313 "maxLength": 32,
314314 "type": "string"
315315 },
316316 "type": {
317317 "const": "TextQuoteSelector",
318318 "type": "string"
319319 }
320320 },
321321 "required": [
322322 "type",
323323 "exact"
324324 ],
325325 "type": "object"
326326 },
327327 "textSpanTarget": {
328328 "description": "W3C Web Annotation target for text spans",
329329 "properties": {
330330 "refinedBy": {
331331 "description": "Optional position selector for precise targeting",
332332 "ref": "#textPositionSelector",
333333 "type": "ref"
334334 },
335335 "selector": {
336336 "description": "Primary selector for resilient text matching",
337337 "ref": "#textQuoteSelector",
338338 "type": "ref"
339339 },
340340 "source": {
341341 "description": "AT-URI of the source document",
342342 "format": "at-uri",
343343 "type": "string"
344344 }
345345 },
346346 "required": [
347347 "source",
348348 "selector"
349349 ],
350350 "type": "object"
351351 }
352352 },
353353 "id": "pub.chive.annotation.entityLink",
354354 "lexicon": 1,
355355 "revision": 1
356356}