Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
563 lines (557 loc) · 69 KB
/
Copy pathindex.html
File metadata and controls
563 lines (557 loc) · 69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<!-- plato:csp -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PLATO tools: check and convert data about places</title>
<meta name="referrer" content="strict-origin-when-cross-origin">
<meta name="description" content="Check and convert data about places between PLATO spreadsheet tables, PLATO JSON, RDF and Linked Places Format, read Recogito's web annotations, compare versions of a published dataset, prepare it for publishing, match it with another dataset and see it on the map, in your browser. Your files stay on your computer, and nothing is sent to any other site unless you allow it.">
<link rel="icon" href="./logo/favicon.svg" type="image/svg+xml">
<link rel="icon" href="./logo/plato-32.png" sizes="32x32" type="image/png">
<link rel="apple-touch-icon" href="./logo/plato-180.png">
<!-- Sets the colour theme chosen in this browser (Auto, Light or Dark) before the page is painted:
a classic script from this site, not an inline one, so that a policy of script-src 'self' allows it. -->
<script src="./theme.js"></script>
<!-- Hides the introduction before the page is painted, if this browser was last left with it hidden:
a classic script from this site, not an inline one, so that a policy of script-src 'self' allows it. -->
<script src="./intro.js"></script>
<link rel="stylesheet" href="./src/styles.css">
</head>
<body>
<header class="top">
<div class="masthead">
<div>
<p class="family">Part of <a href="https://plato.pelagios.org/guide/">PLATO</a>, the Place Attestation Ontology</p>
<h1><img class="logo" src="./logo/plato-mark.svg" width="27" height="36" alt="">PLATO tools</h1>
<a class="dev-badge" href="https://github.com/pelagios/plato-tools/issues" data-tip-template="dev-tip">Experimental</a>
<template id="dev-tip"><p><strong>Experimental, under development; one workflow, Map your data, is in beta testing.</strong> It is being built in the open: its tools, and the formats they write, may change or break. Check what you make against the PLATO guide and the open issues.</p><p>What you make with it is checked against PLATO at the commit named at the foot of this page.</p><p>Found a problem? Follow this badge to report it on GitHub.</p></template>
</div>
<div class="masthead-side">
<div id="theme-switch" class="theme-switch" role="radiogroup" aria-label="Colour theme">
<label><input type="radio" name="plato-theme" value="auto" autocomplete="off" checked><span>Auto</span></label>
<label><input type="radio" name="plato-theme" value="light" autocomplete="off"><span>Light</span></label>
<label><input type="radio" name="plato-theme" value="dark" autocomplete="off"><span>Dark</span></label>
</div>
<a id="guide-link" class="button guide-link" href="https://plato.pelagios.org/guide/tools.html">Guide</a>
<button type="button" id="permissions-button" class="permissions-button" aria-haspopup="dialog">Permissions <span class="count"></span></button>
<button type="button" id="intro-toggle" class="intro-toggle" aria-expanded="true" aria-controls="intro"><span class="if-shown">Hide</span><span class="if-hidden">Show</span> introduction</button>
</div>
</div>
<div id="intro" class="intro">
<img class="plato-mark" src="./src/plato-thinking.png" width="320" height="217" alt="">
<p class="lede">Check and convert data about places in the formats of PLATO, compare the versions of a dataset, prepare it for publishing, and see it on the map; the <a href="https://plato.pelagios.org/guide/">PLATO guide</a> explains the formats, and <a href="https://plato.pelagios.org/guide/tools.html">how to use each tool</a>. <span class="promise">Your files stay on your computer, and nothing is sent to any other site unless you allow it.</span> A dataset of a million places has been checked and converted in this page; <a href="https://plato.pelagios.org/guide/tools.html#large-datasets">how large a dataset your browser can take</a>, and what changes on <a href="https://github.com/pelagios/plato-tools#from-the-command-line">the command line</a>, which also takes many files at once, is in the guide.</p>
</div>
</header>
<main class="layout">
<!-- The workflow rail: beside the steps from 60rem (src/styles.css), sticky, it holds the one line that opens Methodos's
interview while no workflow is followed, and the tracker while one is; below 60rem its contents flow with the page. -->
<div id="workflow-rail" class="workflow-rail">
<p id="methodos-banner" class="methodos-banner"><span class="banner-start"><strong>Have a list of place names? Map your data</strong>: find each place in a gazetteer, step by step. <button type="button" id="methodos-quick" class="primary">Start</button></span> <span class="banner-else">Something else? <a href="#methodos" id="methodos-ask">Answer two questions</a><span class="banner-or">, or <button type="button" id="methodos-open-banner" class="link">open a project</button> saved before, or <button type="button" id="whg-open-banner" class="link">one kept in WHG</button>.</span></span></p>
<!-- A project (.platoproj, src/engine/methodos/project.js) chosen here or in the tracker; what came of it is said here while no workflow is shown. -->
<input type="file" id="methodos-project-file" accept=".platoproj" hidden>
<p id="methodos-project-said" class="methodos-project-said" role="status" hidden></p>
<!-- A share link (#whg-shared=<token>) opened while the page may not ask WHG: what it is, and the permission it needs (src/app.js). -->
<div id="whg-shared-ask" class="methodos-project-said whg-shared-ask" role="status" hidden><p id="whg-shared-ask-words"></p><p id="whg-shared-needs"></p><p><button type="button" id="whg-shared-retry" hidden>Try again</button> <button type="button" id="whg-shared-not-now" class="link">Not now</button></p></div>
<!-- Your projects kept in WHG ("Open from WHG"), listed here, whether a workflow is open or not (src/methodos/page.js). -->
<section id="whg-projects" class="whg-projects" aria-labelledby="whg-projects-h" hidden>
<h2 id="whg-projects-h" tabindex="-1">Your projects in WHG</h2>
<p id="whg-projects-needs"></p>
<p id="whg-projects-said" class="track-message" role="status"></p>
<ul id="whg-projects-list" class="whg-list" role="list"></ul>
<p class="methodos-buttons"><button type="button" id="whg-projects-close">Close</button></p>
</section>
<section id="methodos-tracker" class="methodos-tracker" aria-labelledby="methodos-tracker-h" hidden>
<h2 id="methodos-tracker-h" tabindex="-1">Your workflow: <span id="methodos-tracker-title"></span></h2>
<!-- A workflow shared from WHG, shown read-only (src/methodos/page.js, viewShared): what it is, and the only things to do with it. -->
<div id="methodos-shared" class="track-message track-shared" hidden><p id="methodos-shared-words"></p><p class="methodos-buttons"><button type="button" id="methodos-shared-copy" class="primary">Make my own copy</button> <button type="button" id="methodos-shared-download">Download .platoproj</button> <button type="button" id="methodos-shared-close">Close</button></p></div>
<!-- Below 60rem, the tracker is a strip at the top of the window, "Step n of N: Tool, what it does", which opens to the whole tracker (src/methodos/page.js). -->
<button type="button" id="methodos-strip" class="track-strip" aria-expanded="false" aria-controls="methodos-track"><span class="strip-where"></span> <span class="strip-mark" aria-hidden="true">▾</span></button>
<p id="methodos-tracker-where" class="track-where"></p>
<ol id="methodos-track" class="track" role="list"></ol>
<p id="methodos-message" class="track-message" hidden></p>
<p id="methodos-kept" class="track-message" hidden><span></span><button type="button" id="methodos-clear-kept" class="link">Clear them</button></p>
<p class="methodos-buttons"><button type="button" id="methodos-pick" class="primary" hidden>Choose the file</button> <button type="button" id="methodos-use" class="primary" hidden>Use the file</button> <button type="button" id="methodos-download" class="primary" hidden>Download</button> <a class="button primary" id="methodos-chora" href="#chora" hidden>Open Chora</a> <button type="button" id="methodos-reopen" hidden>Reopen the partial work file</button> <button type="button" id="methodos-restart" hidden>Start the remaining steps under the new recipe</button> <button type="button" id="methodos-done" class="primary">This step is done</button> <button type="button" id="methodos-back">Back a step</button> <button type="button" id="methodos-leave">Leave the workflow</button></p>
<!-- Scope (Issue #33): what every WHG lookup of the workflow is confined to, one line after the buttons, which opens to its
chips, with Edit; filled by src/scope-page.js, worded in src/engine/words.js (SCOPE_WORDS). -->
<div id="scope" class="track-scope" hidden></div>
<!-- What the workflow cannot carry from the files it begins with (a recipe's `cannot`: a reader's limits, in words), folded below the buttons; hidden for a workflow that names none. -->
<details id="methodos-cannot" class="track-about" hidden><summary>What this workflow cannot carry</summary><ul class="track-note track-cannot"></ul></details>
<!-- The project file (src/engine/methodos/project.js): the whole workflow in one .platoproj, to carry on elsewhere or hand on.
Folded, so that the steps and the buttons stay in view; what goes into it is said beside its button. -->
<details id="methodos-project" class="track-about track-project"><summary>Save, open or share the project</summary>
<div id="methodos-project-save">
<p id="methodos-project-what" class="track-note"></p>
<label class="track-own"><input type="checkbox" id="methodos-project-own" checked> <span id="methodos-project-own-words"></span></label>
</div>
<p class="methodos-buttons"><button type="button" id="methodos-save-project">Save the project</button> <button type="button" id="methodos-open-project">Open a project</button></p>
<p id="methodos-replace" class="track-message warn" hidden><span id="methodos-replace-words"></span> <button type="button" id="methodos-replace-yes">Open it in its place</button> <button type="button" id="methodos-replace-no">Keep this workflow</button></p>
<!-- The project kept in WHG's Workbench (src/methodos/whg.js; plan #34, item A1): saved only when asked, opened from
your list there, shared read-only. What leaves this computer, and what will not fit, is said before saving. -->
<div id="whg-project" class="track-whg">
<h3 class="track-sub">In the World Historical Gazetteer</h3>
<p id="whg-needs"></p>
<div id="whgp-token-box" class="lookup-token whg-token" hidden>
<label for="whgp-token">Your WHG token</label>
<span class="token-row"><input id="whgp-token" type="password" autocomplete="new-password" spellcheck="false" aria-describedby="whgp-token-state whgp-token-help"> <button type="button" id="whgp-token-remember">Remember my token</button> <button type="button" id="whgp-token-forget" hidden>Forget the token</button> <span id="whgp-token-state" class="token-state" role="status"></span></span>
<small id="whgp-token-help" class="token-help"></small>
</div>
<p id="whg-state" class="track-note"></p>
<p id="whg-leaves" class="track-note" hidden></p>
<p class="methodos-buttons"><button type="button" id="whg-save">Save to WHG</button> <button type="button" id="whg-open">Open from WHG</button> <button type="button" id="whg-share">Share a read-only link</button> <button type="button" id="whg-unshare" hidden>Stop sharing</button> <button type="button" id="whg-history" hidden>History</button></p>
<div id="whg-history-box" hidden><p id="whg-history-words" class="track-note"></p><ul id="whg-history-list" class="whg-list" role="list"></ul></div>
<div id="whg-choice" class="track-message warn" hidden><p id="whg-choice-words"></p><p class="whg-choice-buttons"></p></div>
<div id="whg-link" class="track-message" hidden><label for="whg-link-url">The read-only link</label> <input type="text" id="whg-link-url" readonly spellcheck="false"> <button type="button" id="whg-copy">Copy</button><p id="whg-link-words" class="track-note"></p></div>
<p id="whg-said" class="track-message" role="status" hidden></p>
</div>
</details>
<!-- How Methodos follows the tools: below the buttons and folded, so that the step list, the message and the buttons stay in view in the rail. -->
<details class="track-about"><summary>How the steps are followed</summary><p class="track-note">The workflow keeps your place and sees what is done on this page: a step is done when its run on the right file finishes, and a step that stops or fails says why. Only a step that is yours to do (checking columns, deciding on matches, drawing on the map) waits for you to say it is done. <span class="greek-name">Methodos</span> is the tool that does this.</p></details>
<p id="methodos-said" class="visually-hidden" aria-live="polite"></p>
</section>
</div>
<section id="methodos" class="methodos" aria-labelledby="methodos-h" hidden>
<h2 id="methodos-h" tabindex="-1">Find your workflow <span class="label greek-name">Methodos</span></h2>
<p class="methodos-lede">Say what you have and what you want at the end, and you are shown the workflow that gets you there, step by step.</p>
<form id="methodos-interview" class="interview">
<fieldset class="question" id="mq-have"><legend>1. What do you have?</legend></fieldset>
<fieldset class="question" id="mq-want"><legend>2. What do you want at the end?</legend></fieldset>
<fieldset class="question" id="mq-more" hidden><legend>3. Anything of these?</legend></fieldset>
</form>
<p id="methodos-verdict" class="methodos-verdict" aria-live="polite"></p>
<div id="methodos-plan" class="methodos-plan" hidden></div>
<p class="methodos-buttons"><button type="button" id="methodos-start" class="primary" hidden>Follow this workflow</button> <button type="button" id="methodos-grid" class="primary" hidden>Show me the tools</button> <button type="button" id="methodos-close">Close</button></p>
</section>
<!-- A workflow followed: the step it is at, as the centre's title ("Step n of N: Tool, what it does"); #for-tool is moved in below it
while the workflow is followed (src/app.js, onStep). -->
<div id="workflow-head" class="workflow-head" hidden><h2 id="workflow-title" tabindex="-1"></h2></div>
<!-- Scope's editor, in the centre column (the area drawn needs the width): while it is open the rest of the centre is
hidden (body.scope-editing), and Done goes back to the step. Filled by src/scope-page.js. -->
<section id="scope-editor" class="scope-editor" aria-labelledby="scope-editor-h" hidden></section>
<!-- The browser refuses the page its file storage, so nothing can run (a Firefox private window), said as the page loads; or, once a
file is chosen, allows it too little for that file (src/app.js, storageProbe and storageCheck). Above step 1, where it is seen first. -->
<p id="storage-warning" class="warn" role="status" hidden></p>
<!-- A match review begun outside a workflow, kept in this browser as it was made and never saved to a file (src/lib/review-progress.js,
latestOffer), offered as the page opens; filled by src/app.js (reviewOffer; the words are words.js REVIEW_KEPT.offer). Never shown
with "Keep my working data between visits" off. -->
<aside id="review-offer" class="offer-card review-offer" aria-labelledby="review-offer-h" hidden>
<svg class="offer-mark" viewBox="0 0 24 24" width="28" height="28" aria-hidden="true"><path d="M6 3.5h9l4 4V20a.5.5 0 0 1-.5.5h-12A.5.5 0 0 1 6 20z M15 3.5v4h4 M9 12.5l2.2 2.2 4-4.4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
<div class="offer-words"><h3 id="review-offer-h"></h3><p id="review-offer-what"></p></div>
<p class="offer-buttons"><button type="button" id="review-offer-open" class="primary"></button> <button type="button" id="review-offer-later"></button> <button type="button" id="review-offer-discard" class="link"></button></p>
</aside>
<p id="review-offer-said" class="offer-said" role="status" hidden></p>
<!-- A workflow that will look places up in the World Historical Gazetteer asks for it as it is begun (src/methodos/whg-ask.js):
allowed here, the page loads again at once, before any work is done, and the policy written at that load holds the gazetteer's
site. Filled by src/methodos/page.js; nothing is allowed without the click, and nothing is sent by it. -->
<aside id="whg-ask" class="offer-card whg-ask" aria-labelledby="whg-ask-h" hidden>
<svg class="offer-mark" viewBox="0 0 24 24" width="28" height="28" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17"/><ellipse cx="12" cy="12" rx="3.8" ry="8.5"/></g></svg>
<div class="offer-words"><h3 id="whg-ask-h"></h3><p id="whg-ask-why"></p><p id="whg-ask-what"></p></div>
<p class="offer-buttons"><button type="button" id="whg-ask-yes" class="primary"></button> <button type="button" id="whg-ask-later" class="link"></button></p>
</aside>
<p id="whg-ask-said" class="offer-said" role="status" hidden></p>
<section id="files" aria-labelledby="files-h">
<h2 id="files-h" tabindex="-1"><span class="step">1</span> Choose your data</h2>
<p id="for-tool" class="for-tool" hidden></p>
<!-- The file kept from last time (src/lib/kept-file.js), offered on a new visit or a reload; filled by src/app.js (keptOffer). -->
<p id="kept-file" class="kept-file" role="status" hidden><span class="kept-what"></span> <button type="button" id="kept-use" class="primary">Use it</button> <button type="button" id="kept-forget">Forget it</button></p>
<label class="drop compact-drop" id="drop">
<input type="file" id="picker" multiple>
<span>Drop a file here, or <u>choose one</u>.</span>
<small>Any format PLATO tools reads (<a href="https://plato.pelagios.org/guide/tools.html#what-it-reads-and-writes">which</a>). Then choose what to do with it, or start from one of the tools. No data to hand? <a id="try-files" href="./try/plato-tools-try-files.zip" download>Download example files</a> (zip, 344 KB), with what each should show. New to PLATO? Start from <a id="get-templato" href="https://plato.pelagios.org/guide/spreadsheets/index.html#get-templato">temPlato</a>, the spreadsheet template: fill its sheets, and drop the workbook here.</small>
</label>
<!-- Hermes: a pasted list of names, read as a table of places of one column; filled by src/app.js, worded in src/engine/words.js (PASTE_WORDS). -->
<details id="paste" class="paste"></details>
<div id="chosen" hidden></div>
<!-- In a workflow, once its file is chosen and recognised, step 1 folds to this one line, with a way to open it again (src/app.js, foldFiles). -->
<p id="chosen-line" class="chosen-line" hidden><span class="chosen-what"></span> <button type="button" id="change-file" class="link" aria-controls="files">Change</button></p>
</section>
<!-- Chora, the map (src/chora/app.js), in the centre column at #chora: loaded, with its map libraries, and mounted into #chora-root the
first time it is opened (src/app.js, openChora), and only then. While it is shown the rest of the centre is hidden (body[data-chora]),
step 1's line (its file) above it. -->
<section id="chora" class="chora" aria-labelledby="chora-h" hidden>
<div class="chora-head">
<!-- The tools, folded away while the map is shown (body[data-chora]), and back with this (body[data-chora-tools]): src/app.js. -->
<button type="button" id="chora-tools" class="chora-tools" aria-expanded="false" aria-controls="toolbox"><span class="if-folded">Tools <span aria-hidden="true">▸</span></span><span class="if-unfolded"><span aria-hidden="true">◂</span> Tools</span></button>
<h2 id="chora-h" tabindex="-1">Map <span class="label greek-name">Chora</span></h2>
<button type="button" id="chora-leave">Leave the map</button>
</div>
<div id="chora-root" class="chora-main"></div>
</section>
<section id="action" aria-labelledby="action-h" hidden>
<h2 id="action-h" tabindex="-1"><span class="step">2</span> <span id="action-what">Check it, convert it, compare it, publish it, match it, or see it on the map</span></h2>
<!-- Hermes: for a table of places (CSV, or plain GeoJSON), which column holds what, as guessed; filled by src/app.js. -->
<div id="columns" class="columns" data-for="generic-input" role="group" aria-labelledby="columns-h" hidden></div>
<!-- Hermes: the reading options of a TEI edition or a table of places, every one off until chosen; filled by src/app.js, worded in src/engine/words.js (READING_WORDS). -->
<fieldset id="reading" class="reading" data-for="hermes-reading" hidden></fieldset>
<!-- Hermes: "Group similar spellings…" for a table of places, nothing grouped until a group is ticked; filled by src/hermes-spellings.js, worded in src/engine/words.js (CLUSTER_WORDS). -->
<div id="spellings" class="spellings" data-for="hermes-spellings" hidden></div>
<!-- data-tools: the tools (#tool=…) each part is shown for, once one is chosen; with none chosen, every part is shown. -->
<!-- After Cancel, when the run it ended still held its files: CANCEL_RELEASING, until a run finishes. -->
<p id="releasing" class="warn" role="status" hidden></p>
<div class="actions" data-tools="check convert figures">
<button id="check" class="primary" data-tools="check">Check</button>
<span class="or" data-tools="">or</span>
<label for="target" class="visually-hidden" data-tools="convert figures">Convert to</label>
<select id="target" data-tools="convert figures"></select>
<button id="convert" data-tools="convert figures">Convert</button>
</div>
<!-- Arithmos: "Check the Data Cube" (src/engine/cubecheck.js), for a dataset with figures or a Data Cube export; shown with Arithmos chosen, also for a file that is already N-Triples ("cube-check"). -->
<div class="actions cubing" data-tools="figures cube-check">
<span class="or" data-tools="">or, to check the Data Cube it holds,</span>
<button id="datacube">Check the Data Cube</button>
<small>A dataset is converted to its Data Cube first, in memory; a Data Cube export (N-Triples) is checked as it is. The Data Cube integrity constraints IC-1, 2, 11, 12 and 14 are checked, and the figures themselves: every universe a figure of the same table, every coordinate declared in its table's structure, every value a number (each stops you), and the parts of a universe summing to it (a warning, since a sum that fails is sometimes the source's own arithmetic). Each is shown with the number of things it evaluated; one with nothing to evaluate is not tested, and never counted as passed.</small>
</div>
<!-- Hermes: the preview of the first records, for a table of places, a TEI edition or annotations; filled by src/app.js, worded in src/engine/words.js (PREVIEW_WORDS). -->
<div class="actions previewing" hidden>
<button id="preview" type="button"></button>
</div>
<div id="preview-result" class="preview" aria-live="polite" hidden></div>
<div class="actions candidates" data-tools="check">
<span class="or">or, with the candidate sets that suggest matches for it (or for one candidate set, with the others),</span>
<button id="check-candidates">Check with candidate sets…</button>
<input type="file" id="candidate-sets" multiple hidden aria-label="The candidate sets">
<small>You will be asked for the candidate sets' files, one file for each set. Each is checked against its profile; a later set must leave out what an earlier one published; and a dataset's answers to candidates (promotedFrom) must find them in the sets. Nothing is fetched.</small>
</div>
<div class="actions versions" data-tools="versions">
<span class="or">or, if this is a new version of a dataset you have published,</span>
<button id="compare">Compare with the earlier version…</button>
<input type="file" id="earlier" multiple hidden aria-label="The earlier version">
<small>You will be asked for the earlier version's file. Once a dataset is published, its attestations are only added to: this shows that none was deleted or changed.</small>
<span class="or">or, to make it keep that rule,</span>
<button id="revise">Revise against the earlier version…</button>
<input type="file" id="earlier-revise" multiple hidden aria-label="The earlier version, to revise against">
<small>You will be asked for the previous release's file (the copy with addresses that its site was made from). Whatever the new version deleted is put back and retracted, whatever it changed is put back and replaced, in your name as reviewer (under Krisis's review), and the revised dataset is checked against the previous release before it is written.</small>
</div>
<div class="actions publishing" data-tools="publish">
<span class="or">or, to publish it,</span>
<label for="part" class="visually-hidden">What to prepare</label>
<select id="part">
<option value="report">Report on its description, and write the deposit metadata</option>
<option value="mint">Give every attestation a permanent address</option>
<option value="site">Make a website for GitHub Pages</option>
<option value="w3id">Write the w3id redirect rules</option>
</select>
<button id="publish">Prepare</button>
<small>See <em>Options</em> for the release's name, the previous release, and where the site will be published.</small>
</div>
<div class="actions matching" data-tools="match">
<span class="or">or, to find the same places in another dataset,</span>
<button id="match">Match with another dataset…</button>
<input type="file" id="others" multiple hidden aria-label="The other dataset">
<button id="resume">Resume a review…</button>
<input type="file" id="workfile" hidden accept=".json,application/json" aria-label="A saved review">
<small>You will be asked for the other dataset's file. Places whose names are alike, and that are near each other, are suggested as matches, for you to accept or reject one by one; your decisions become attestations of identity. To carry on with a review you saved, choose the same dataset, then <em>Resume a review</em>.</small>
</div>
<div class="actions mapping" data-tools="">
<span class="or">or, to see its places on the map and draw on it,</span>
<a class="button" id="to-chora" href="#chora">Show on the map (Chora)</a>
<small>Opens Chora here, with this file.</small>
</div>
<!-- Krisis: gazetteer lookup (online, optional). Runs on the page's thread (src/app.js), never in the worker. -->
<details id="lookup" class="lookup" data-tools="match">
<!-- "(online, optional)" is not said while a workflow's step is the lookup itself (src/app.js, LOOKUP_STEPS). -->
<summary>Look up in a gazetteer <span id="lookup-optional">(online, optional)</span></summary>
<p class="lookup-how">What is found is added to the review below, if one is open, for you to decide on as any other match; otherwise a new review begins. Nothing is accepted for you.</p>
<fieldset class="lookup-service">
<legend>Service</legend>
<label><input type="radio" name="lookup-service" value="whg" checked> The World Historical Gazetteer (WHG)</label>
<label><input type="radio" name="lookup-service" value="other"> Another reconciliation service</label>
<div class="lookup-other" hidden>
<label for="lookup-endpoint">Its address</label>
<input id="lookup-endpoint" type="url" placeholder="https://example.org/reconcile" size="40">
<label for="lookup-iri">How to make a candidate's address from its id (if its ids are not addresses)</label>
<input id="lookup-iri" type="text" placeholder="https://www.wikidata.org/wiki/{{id}}" size="40">
</div>
</fieldset>
<!-- Shown only while WHG is the service (src/app.js, showTokenBox). The token is never put back into the field: once given, the field is empty with a masked placeholder. -->
<div id="lookup-token" class="lookup-token">
<label for="whg-token">Your WHG token</label>
<div class="token-row">
<input id="whg-token" type="password" autocomplete="new-password" spellcheck="false" size="30" placeholder="From your profile on whgazetteer.org" aria-describedby="whg-token-state whg-token-help">
<button id="whg-remember" type="button">Remember my token</button>
<button id="whg-forget" type="button" hidden>Forget the token</button>
<span id="whg-token-state" class="token-state" role="status"></span>
</div>
<small id="whg-token-help"><a href="https://whgazetteer.org/" target="_blank" rel="noopener noreferrer">Get your token: sign in at whgazetteer.org, open your profile, and copy the token shown there</a> (it opens in a new tab; nothing is sent from here). Press Enter to use it in this tab only, or Remember my token to keep it in this browser. Forgetting a token does not revoke it: only regenerating it in your WHG profile does.</small>
</div>
<label for="lookup-places">Which places</label>
<select id="lookup-places"></select>
<button id="lookup-only-unlinked" type="button" class="link">Only places without a gazetteer link</button>
<!-- In a scholar-facing workflow (Map your data) the service, the block below and the queries exactly as sent are put in here, folded
(src/app.js, plainWords): which places and the button are the choices left. Outside one it is hidden, and every part is where it was. -->
<details id="lookup-expert" class="expert lookup-expert" hidden><summary></summary><p class="expert-note"></p><div id="lookup-expert-body"></div><div id="lookup-expert-sent"></div></details>
<div id="lookup-advanced">
<label><input id="lookup-all-names" type="checkbox"> Also send each place's other names, one query each (the preview shows the cost)</label>
<!-- Krisis × Methodos: query variants (opt-in); its words are words.js variantWords, put in by src/app.js. -->
<label><input id="lookup-variants" type="checkbox"> <span id="lookup-variants-text"></span></label>
<label for="lookup-lang">The dataset's language, for names that give none of their own: a code such as <code class="code-chip">en</code>, <code class="code-chip">la</code> or <code class="code-chip">ang</code>, or type a language's name to find its code (for the World Historical Gazetteer only; leave it empty to send none)</label>
<div class="lang-box"><input id="lookup-lang" type="text" autocomplete="off" spellcheck="false" maxlength="35" size="8" aria-describedby="lookup-lang-problem"></div>
<p id="lookup-lang-problem" class="warn" role="alert" hidden></p>
<fieldset class="lookup-filters">
<legend>Filters, each off unless you turn it on</legend>
<label><input id="lookup-countries" type="checkbox"> Only candidates in the place's own countries. This is a filter: it hides everything outside it, including the right answer if the countries are wrong.</label>
<label><input id="lookup-near" type="checkbox"> Only candidates near the place. This is a filter: it hides everything outside it, including the right answer. It sends the place's coordinates.</label>
<label for="lookup-near-km">Near means within this many kilometres</label>
<input id="lookup-near-km" type="number" min="1" max="20015" step="1" value="25">
</fieldset>
<!-- A place whose own address is a gazetteer's (a TEI ref, a Recogito link) is kept so, and flagged for the reviewer when WHG's best candidate is further than this (lookup.js refCheck). -->
<label for="lookup-disagree-km">Flag a place whose own gazetteer link is further than this many kilometres from WHG's best candidate (it is then left for you, never accepted in bulk)</label>
<input id="lookup-disagree-km" type="number" min="1" max="20015" step="1" value="25">
</div>
<!-- Scope (Issue #33): the workflow's, or outside one this tab's, with a way to edit it (src/scope-page.js). -->
<div id="lookup-scope" class="lookup-scope"></div>
<div id="lookup-preview"></div>
<p id="lookup-permission" hidden></p>
<div class="lookup-go">
<button id="lookup-send" type="button" class="primary" disabled>Send to WHG</button>
<button id="lookup-stop" type="button" hidden>Stop</button>
<button id="lookup-resume" type="button" hidden>Resume</button>
</div>
<p id="lookup-progress" aria-live="polite"></p>
<div id="regions-offer" class="regions-offer" hidden><p id="regions-offer-text"></p><button id="regions-start" type="button"></button></div>
</details>
<!-- In a scholar-facing workflow (Map your data), what is not the step's own is put in here, folded (src/app.js, expertFold):
the Data Cube, candidate sets, the version check and revision, publishing, matching with another dataset. -->
<details id="expert" class="expert" hidden><summary></summary><p class="expert-note"></p><div id="expert-body"></div></details>
<details id="options">
<summary>Options</summary>
<div class="opt" data-for="tables-input">
<label for="base">Web address for your identifiers</label>
<input id="base" type="url" value="" placeholder="https://example.org/my-dataset/" size="40">
<small>The spreadsheet ids (such as <code>bristol</code>) become web addresses under this one. Leave it empty to use the <code>base_uri</code> in the about sheet, which is where it belongs; given here, it is used instead.</small>
</div>
<div class="opt" data-for="publishing">
<label for="release">Release name</label>
<input id="release" type="text" placeholder="data-2026-10-01" size="20">
<small>For a frozen release, which gets its own address, <code>…/release/<em>name</em></code>.</small>
<label for="previous">Previous release</label>
<input id="previous" type="file" multiple>
<small>Its attestations keep their addresses, and nothing it published may be missing.</small>
<label for="repo">GitHub repository</label>
<input id="repo" type="text" placeholder="owner/name" size="20">
<label for="site-url">Where the site is served</label>
<input id="site-url" type="url" placeholder="https://owner.github.io/name/" size="40">
<small>Only if it is neither the base address nor the repository's GitHub Pages address.</small>
<label for="maintainers">w3id maintainers</label>
<input id="maintainers" type="text" placeholder="GitHub user names" size="30">
<label for="concept-doi">Concept DOI</label>
<input id="concept-doi" type="text" placeholder="10.5281/zenodo.…" size="24">
<small>The DOI Zenodo gives to every version of the dataset, once it has given one.</small>
<label><input id="turtle" type="checkbox"> Also write Turtle for each place and source</label>
<label for="only">Only these places</label>
<input id="only" type="file" accept=".txt,text/plain">
<small>For the website: a text file of the keys of the places to include, one to a line. A place's key is the last part of its address (<code>bristol</code> in <code>…/place/bristol</code>). The addresses of places left out lead to the site's downloads, which hold every place.</small>
</div>
<div class="opt" data-for="convert-output">
<label><input id="gzip" type="checkbox"> Gzip the converted file</label>
<small>Compressed as it is written, with <code>.gz</code> added to its name; the same data gives the same bytes. Not the spreadsheet tables, which are a zip already.</small>
</div>
<div class="opt" data-for="ntriples-output">
<label><input id="typing" type="checkbox" checked> Add node types and typed dates, as the DEEP RDF export does</label>
<small>Adds <code>rdf:type</code> from the ontology's domains and ranges, <code>xsd:gYear</code> on year bounds, and WKT points.</small>
<label><input id="cube" type="checkbox"> Add what the RDF Data Cube vocabulary expects of statistical figures</label>
<small>For figures from a statistical table: each becomes a <code>qb:Observation</code> with its measure as a direct statement, and its place and date as <code>sdmx-dimension:refArea</code> and <code>refPeriod</code>. A date that is not one year or one day is reported, not guessed.</small>
</div>
<div class="opt" data-for="matching">
<label for="threshold">Matching: how alike two names must be to be suggested</label>
<input id="threshold" type="number" min="0.5" max="1" step="0.01" value="0.85">
<small>From 0.5 (loosely alike) to 1 (the same, once accents, capitals and punctuation are set aside).</small>
<label for="max-distance">Matching: furthest apart two places may be, in kilometres</label>
<input id="max-distance" type="number" min="0" step="1" value="50">
<small>Only where both have coordinates; a place without them is matched by name alone.</small>
<fieldset id="qualifier-lists"></fieldset>
<label for="others-title">Matching: the other dataset's title</label>
<input id="others-title" type="text" size="40">
<small>Each attestation you make cites the other dataset as its source, by its title. Leave it empty to use the title the other dataset gives; if it gives none, its file's name would be cited, so give one here. At finishing, it is used only for a review that has no title for the other dataset but its file's name.</small>
<label for="reviewer">Your name, as the reviewer of the matches</label>
<input id="reviewer" type="text" autocomplete="name" size="30">
<label for="orcid">Your ORCID (optional)</label>
<input id="orcid" type="text" placeholder="0000-0000-0000-0000" size="22">
<small>Recorded with each attestation you make, as the one who made it.</small>
</div>
</details>
</section>
<section id="progress" aria-labelledby="progress-h" hidden>
<h2 id="progress-h"><span class="step">3</span> Working</h2>
<p id="phase" aria-live="polite"></p>
<p><button id="cancel">Cancel</button></p>
</section>
<section id="result" aria-labelledby="result-h" hidden>
<h2 id="result-h" tabindex="-1"><span class="step">4</span> Result</h2>
<!-- In a workflow, once it has gone on: which step this result was of (src/app.js, resultLabel). -->
<p id="result-of" class="result-of" hidden></p>
<p id="summary"></p>
<!-- What came of writing the result, in plain words (src/engine/plain.js, outcome): what WHG would accept of a Linked Places
Format v2 file, and why not the rest; what the flat table is. The report below keeps every item in full. -->
<div id="outcome" class="outcome" hidden></div>
<div id="saves"></div>
<div id="report"></div>
</section>
<section id="review" aria-labelledby="review-h" hidden>
<h2 id="review-h"><span class="step">5</span> Review the matches</h2>
<form id="review-who" class="review-who" hidden>
<label for="review-name">Before you start: your name, to record you as the reviewer</label>
<input id="review-name" type="text" autocomplete="name" size="30" required>
<button type="submit">Use this name</button>
</form>
<!-- Krisis: region review (Methodos #28, stages 3 and 4): the regions the places lie in, level by level; drawn by src/app.js drawRegions(), its words in words.js REGION_PAGE. -->
<section id="regions" class="regions" aria-labelledby="regions-h" hidden>
<h3 id="regions-h" tabindex="-1"></h3>
<p id="regions-how" class="note"></p>
<nav id="regions-nav" class="regions-nav"></nav>
<div class="regions-bar">
<span class="field"><label id="region-identity-label" for="region-identity"></label>
<select id="region-identity"></select></span>
<span class="field"><label id="region-certainty-label" for="region-certainty"></label>
<select id="region-certainty"></select></span>
<button id="regions-stop" type="button" hidden></button>
</div>
<p id="regions-permission" hidden></p>
<div id="regions-confirm" class="regions-confirm" role="group" aria-live="assertive" hidden></div>
<p id="regions-status" class="regions-status" aria-live="polite"></p>
<div id="regions-level"></div>
</section>
<div class="review-bar">
<p id="review-progress" aria-live="polite"></p>
<span class="field"><label for="review-filter">Show</label>
<select id="review-filter">
<option value="undecided">places still to decide</option>
<option value="all">all places</option>
</select></span>
<span class="field"><label for="identity-type">Record “Same place” as</label>
<select id="identity-type">
<option value="exactMatch">the same place (exact match)</option>
<option value="closeMatch">much the same place (close match)</option>
<option value="related">a related place</option>
</select></span>
</div>
<!-- Krisis × Methodos: the order of the places, and the bulk accept of what passes WHG's guards; drawn by src/app.js (words.js guardWords). -->
<div id="review-bulk" class="review-bulk"></div>
<p id="review-warning" class="warn" hidden></p>
<article id="review-place" tabindex="-1" aria-labelledby="review-subject"></article>
<div class="review-nav">
<button id="review-prev" type="button">Previous <kbd>k</kbd></button>
<button id="review-skip" type="button">Skip <kbd>s</kbd></button>
<button id="review-next" type="button">Next <kbd>j</kbd></button>
</div>
<p class="note review-keys">Keys: <kbd>a</kbd> same place (or <kbd>1</kbd>–<kbd>9</kbd> for that candidate), <kbd>n</kbd> not this one, <kbd>d</kbd> different places, <kbd>s</kbd> skip, <kbd>j</kbd> next, <kbd>k</kbd> previous. They act on the highlighted candidate, and do nothing while you are typing.</p>
<!-- Krisis: Wikidata items for the places no gazetteer knows (Issue #36; src/krisis/wikidata-panel.js; the words are words.js WIKIDATA_WORDS). -->
<details id="wikidata" class="lookup wikidata" data-tools="match" hidden>
<summary>Wikidata items for the places no gazetteer knows</summary>
<p id="wikidata-intro" class="note"></p>
<h4 id="wikidata-search-h"></h4>
<p id="wikidata-search-status" aria-live="polite"></p>
<p id="wikidata-hits" class="warn"></p>
<p id="wikidata-permission" hidden></p>
<div class="wikidata-actions"><button id="wikidata-search" type="button" class="primary" hidden></button><button id="wikidata-stop" type="button" hidden>Stop</button></div>
<h4 id="wikidata-gate-h"></h4>
<p id="wikidata-gate"></p>
<label id="wikidata-consent-row" hidden><input id="wikidata-consent" type="checkbox"> <span id="wikidata-consent-text"></span></label>
<p id="wikidata-consented" class="note"></p>
<h4 id="wikidata-items-h"></h4>
<fieldset id="wikidata-statements"></fieldset>
<label><span id="wikidata-lang-label"></span> <input id="wikidata-lang" type="text" autocomplete="off" spellcheck="false" size="6" maxlength="3"></label>
<p id="wikidata-items-status" aria-live="polite"></p>
<div id="wikidata-items" class="wikidata-items"></div>
<h4 id="wikidata-batch-h"></h4>
<p id="wikidata-volume"></p>
<p id="wikidata-warnings" class="warn" hidden></p>
<button id="wikidata-download" type="button" class="primary" disabled></button>
<p id="wikidata-batches" class="note" aria-live="polite"></p>
<ol id="wikidata-howto"></ol>
<p id="wikidata-links" class="note"></p>
<h4 id="wikidata-ids-h"></h4>
<label id="wikidata-batch-label" for="wikidata-batch" hidden></label> <select id="wikidata-batch" hidden></select>
<label><span id="wikidata-paste-label"></span> <textarea id="wikidata-qids" rows="4" cols="40" spellcheck="false"></textarea></label>
<button id="wikidata-check" type="button"></button>
<label><span id="wikidata-user-label"></span> <input id="wikidata-user" type="text" autocomplete="off" spellcheck="false" size="24"></label>
<button id="wikidata-read" type="button"></button>
<p id="wikidata-ids-status" aria-live="polite"></p>
<ul id="wikidata-ids" class="wikidata-ids"></ul>
<button id="wikidata-record" type="button" class="primary" hidden></button>
</details>
<div class="review-end">
<button id="save-review" type="button">Save the review</button>
<small>Saves your decisions so far, to carry on later with <em>Resume a review</em>.</small>
<!-- Krisis: the review's progress kept in this browser as it is made (src/lib/review-progress.js; the words are words.js REVIEW_KEPT). -->
<p id="review-kept" class="review-kept" hidden><span id="review-kept-text" role="status"></span> <button id="review-kept-use" type="button" hidden></button> <button id="review-kept-clear" type="button" class="link" hidden></button></p>
<div class="candidate-export">
<button id="export-candidates" type="button" data-plain-words="export">Export the suggestions as a candidate set</button>
<button id="earlier-candidates" type="button" data-plain-words="earlier">Earlier candidate sets…</button>
<input type="file" id="earlier-candidates-file" accept=".json,application/json" multiple hidden>
<small data-plain-words="export-note">A candidate set publishes what the software suggested, so that each attestation can point at the suggestion it answers. If earlier sets were published, give them first: their candidates are left out.</small>
<p id="candidates-status" aria-live="polite" hidden></p>
</div>
<fieldset class="finish">
<!-- Each part marked data-plain-words is said in plain words in a scholar-facing workflow (src/engine/plain.js, PLAIN_FINISH, by that key; src/app.js,
plainWords), and in these, its own, outside one. There, the changed decision's two ways and the candidate set above are put into the fold below. -->
<legend data-plain-words="legend">Finish: what to make of your decisions</legend>
<label><input type="radio" name="review-output" value="dataset" checked> <span data-plain-words="dataset">Your dataset with the new attestations added, as a PLATO JSON document, checked with the version check</span></label>
<label><input type="radio" name="review-output" value="attestations"> <span data-plain-words="attestations">A PLATO file of only the new attestations</span></label>
<fieldset class="draft-answers">
<legend data-plain-words="draft-legend">If you have changed a decision since you last finished, and your dataset is not yet published</legend>
<label><input type="radio" name="draft-answers" value="withdraw" checked> <span data-plain-words="withdraw">Withdraw the earlier answer, and keep it in the dataset (keep the history)</span></label>
<label><input type="radio" name="draft-answers" value="replace"> <span data-plain-words="replace">Replace the earlier answer: take it out, and write the new one</span></label>
<small data-plain-words="draft-note">A published dataset always keeps its earlier answers: there, a changed decision withdraws them, whichever you choose.</small>
</fieldset>
<details id="finish-expert" class="expert finish-expert" hidden><summary></summary><p class="expert-note"></p><div id="finish-expert-body"></div></details>
<p id="finish-cites" class="note"></p>
<button id="finish" type="button" class="primary" data-plain-words="button">Finish</button>
</fieldset>
</div>
</section>
<!-- The tools, after the steps, so that step 2 follows step 1, in groups under plain headings (docs/plans/methodos.md, 11.2): Methodos first and Peripleo last, both planned and not links: choosing one narrows step 2 to what it does (src/app.js, #tool=…); Chora's opens the map in the centre (#chora). -->
<nav id="toolbox" class="tools-bare" aria-labelledby="tools-h">
<h2 id="tools-h" class="visually-hidden">The tools</h2>
<div class="tool-sets">
<div class="tool-set" data-cards="1">
<h3 class="tool-group" id="tg-start">Guided workflows</h3>
<ul class="tools choose" aria-labelledby="tg-start">
<li class="tool"><a class="tool-link" id="methodos-card" href="#methodos"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/></svg><span class="plain-name">Guided steps</span></h4><p class="label"><span class="why greek-name" data-tip="Methodos: the tool that does this. μέθοδος: the pursuit along a way, Plato's word for a path of inquiry followed step by step, which is what a workflow is.">Methodos</span></p><p>Not sure where to begin? Say what you have and what you want, and follow a workflow through the tools, step by step, with your place kept. First: <strong>Map your data</strong>, from a list of names to places identified, located and citable.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Guided steps (Methodos)</span></summary><div class="more-body"><p>Three short questions choose a workflow: what you have, what you want at the end, and, where the workflow needs it, a yes or no or two. The workflows so far are <strong>Map your data</strong>, <strong>Publish a dataset</strong>, <strong>Places from an edition (TEI)</strong>, <strong>Places from Recogito</strong>, <strong>Match two datasets</strong>, <strong>Trace a historical map</strong>, <strong>Make an open map</strong>, a map of your places to share on Wikipedia or Wikimedia Commons, and <strong>Release a new version</strong>, in which nothing published is deleted or changed; others, such as Places from a text, are to come. Answers that lead to no workflow yet say which tools do the work meanwhile.</p><p>Each step is one of the tools, named with what it does, and the workflow's steps are shown beside the steps of the page, ticked as they are done. A step that the tools cannot do yet says so, and why. Workflows are named in plain English; the tools keep their Greek names.</p><p class="in-guide">Its plan, and what is still to come, are in <a href="https://github.com/pelagios/plato-tools/issues">the issues</a>.</p></div></details></li>
</ul>
</div>
<div class="tool-set" data-cards="1">
<h3 class="tool-group" id="tg-in">Bring your data in</h3>
<ul class="tools choose" aria-labelledby="tg-in">
<li class="tool"><a class="tool-link" href="#files" data-tool="read"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M2 15h10"/><path d="m9 18 3-3-3-3"/></svg><span class="plain-name">Read my table</span></h4><p class="label"><span class="why greek-name" data-tip="Hermes: the tool that does this. Ἑρμῆς: the messenger and interpreter of the Greek gods, who carried meaning from one world to another, as the readers bring other formats into PLATO.">Hermes</span></p><p>Bring in the places you linked in Recogito, with the regions you marked on georeferenced maps, the places named in a TEI edition, and any spreadsheet (CSV) or GeoJSON you already have.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Read my table (Hermes)</span></summary><div class="more-body"><p>Reads what you already have into PLATO, to check, convert and add to:</p><ul><li>Recogito's annotations: each place you linked becomes an attestation, citing the document and where in it.</li><li>Regions you marked on a map in Recogito, placed as points when you choose the export with the map's georeference from Allmaps; each cites the map and the georeference.</li><li>The place names in a TEI edition, EpiDoc included, that point at a gazetteer.</li><li>Any CSV or GeoJSON of places, its columns guessed and matched to PLATO's fields, for you to correct before converting.</li></ul><p>For regions on a map, choose the Recogito export together with the map's georeference from Allmaps (and its IIIF manifest, if you have it). A CSV or GeoJSON has its columns matched to PLATO before converting.</p><p class="in-guide">In the guide: <a href="https://plato.pelagios.org/guide/annotations.html">annotations from Recogito</a>, <a href="https://plato.pelagios.org/guide/tei.html">place names in a TEI edition</a>, <a href="https://plato.pelagios.org/guide/tables-of-places.html">your own table of places</a></p></div></details></li>
</ul>
</div>
<div class="tool-set" data-cards="3">
<h3 class="tool-group" id="tg-check">Check and convert</h3>
<ul class="tools choose" aria-labelledby="tg-check">
<li class="tool"><a class="tool-link" href="#tool=check" data-tool="check"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m8 11 2 2 4-4"/><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg><span class="plain-name">Check</span></h4><p class="label"><span class="why greek-name" data-tip="Elenchos: the tool that does this. ἔλεγχος: the Socratic test that exposes a claim's inconsistencies, which is what a check does to your data.">Elenchos</span></p><p>Put your data to the test: every problem found, named and pointed to, before anyone else relies on it.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Check (Elenchos)</span></summary><div class="more-body"><p>Checks a file against PLATO's own definitions: a JSON document against PLATO's JSON Schemas, the spreadsheet tables against their table definitions, and linked data against the terms the ontology defines. It also finds mistakes no schema can, such as a route that, through its members, is a member of itself.</p><p>The report comes in three parts: problems to put right, each named in plain words with where it is (the sheet, row and column, or the place); warnings worth a look; and what would not be carried over if you converted the file.</p><p class="in-guide"><a href="https://plato.pelagios.org/guide/tools.html#checking">Checking, in the guide</a></p></div></details></li>
<li class="tool"><a class="tool-link" href="#tool=convert" data-tool="convert"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg><span class="plain-name">Convert</span></h4><p class="label"><span class="why greek-name" data-tip="Metaphrasis: the tool that does this. μετάφρασις: rendering the same content in another form, as a conversion does.">Metaphrasis</span></p><p>Move your data between PLATO JSON, RDF, the spreadsheet tables and Linked Places Format, and be told exactly what each format cannot carry.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Convert (Metaphrasis)</span></summary><div class="more-body"><p>Converts between PLATO JSON (and JSON Lines), linked data, the spreadsheet tables and Linked Places Format. Linked data is read as N-Triples, N-Quads or Turtle, and written as N-Triples.</p><p>PLATO JSON written as linked data and read back loses nothing; linked data from elsewhere may carry a language tag or datatype PLATO JSON has no place for, and the report names each. The tables and Linked Places Format hold less, by design: the report names everything left out, and where leaving out a detail would change what a statement says, as with a denial or a withdrawn statement, the whole statement is left out, and the report says so.</p><p class="in-guide"><a href="https://plato.pelagios.org/guide/tools.html#converting">Converting, in the guide</a></p></div></details></li>
<li class="tool"><a class="tool-link" href="#tool=figures" data-tool="figures"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/></svg><span class="plain-name">Count and compare</span></h4><p class="label"><span class="why greek-name" data-tip="Arithmos: the tool that does this. ἀριθμός: number. For figures from census volumes and statistical tables.">Arithmos</span></p><p>The figures in a dataset from census volumes and statistical tables, converted to RDF Data Cube and checked against its rules and their own.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Count and compare (Arithmos)</span></summary><div class="more-body"><p>For figures from census volumes, returns and other statistical tables, once they are in a PLATO dataset (Hermes reads them out of a census table when you describe its columns). PLATO keeps each figure with its address in the table (the county, the occupation, the sex), so that a place is never said to “have” an occupation.</p><p>Choosing Arithmos sets the conversion to N-Triples with the RDF Data Cube option: each figure becomes a <code>qb:Observation</code>, with its place and date as <code>refArea</code> and <code>refPeriod</code>, and a date that is not one year or one day is reported, not guessed. Then <em>Check the Data Cube</em>, here, or <code>datacube</code> on the command line, checks the result: Data Cube’s integrity constraints, and the figures themselves (every universe a figure of the same table, every coordinate declared, every value a number, and the parts of a universe adding up to it, which only warns), each with the number of things it evaluated.</p><p class="in-guide"><a href="https://plato.pelagios.org/guide/statistics.html">Statistical tables, in the guide</a></p></div></details></li>
</ul>
</div>
<div class="tool-set" data-cards="2">
<h3 class="tool-group" id="tg-locate">Identify and locate</h3>
<ul class="tools choose" aria-labelledby="tg-locate">
<li class="tool"><a class="tool-link" href="#tool=match" data-tool="match"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v18"/><path d="m19 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1"/><path d="m5 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M7 21h10"/></svg><span class="plain-name">Find in gazetteers</span></h4><p class="label"><span class="why greek-name" data-tip="Krisis: the tool that does this. κρίσις: judgement, the act of deciding between alternatives.">Krisis</span></p><p>Is this Newton that Newton? Find the same places in another dataset, weigh each suggested match, and keep your judgement on the record.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Find in gazetteers (Krisis)</span></summary><div class="more-body"><p>Matches your dataset with another, in any format PLATO tools reads. Places whose names are alike are suggested, best first, and where both have a point, none more than 50 km apart (you can change this), and you decide each: the same place, not this one, or different places, saying why for the last.</p><p>Only your decisions go into the data, as attestations recording you as the one who made them. Save the review to carry on later; at the end, take your dataset with the new attestations added, checked by the version check, or the new attestations alone.</p><p>Or look your places up in the World Historical Gazetteer, or another reconciliation service, online and only if you allow it, for the same review: what it finds is added beside your own matches, and nothing is accepted for you.</p><p class="in-guide"><a href="https://plato.pelagios.org/guide/tools.html#match-review">Reviewing matches, in the guide</a></p></div></details></li>
<li class="tool"><a class="tool-link" href="#chora"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 01-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0112 0"/><path d="M4.474 15h-.197a1 1 0 00-.969.753l-1.097 4.35a1.5 1.5 0 001.444 1.898L20.344 22a1.5 1.5 0 001.446-1.897l-1.098-4.35a1 1 0 00-.969-.753h-.197"/><circle cx="12" cy="8" r="2"/></svg><span class="plain-name">Map</span></h4><p class="label"><span class="why greek-name" data-tip="Chora: the tool that does this. χώρα: Plato's own word, in the Timaeus, for place, the space in which things come to be.">Chora</span></p><p>See each place on the map, with everything its attestations say of it over time. Draw a point, a line or an area as a new attestation.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Map (Chora)</span></summary><div class="more-body"><ul><li>Every place on the map, and, for the one you choose, what its attestations say of it over time.</li><li>Search by any current name a place has, not only the one it is listed under (“Byzantium — also Konstantinoupolis”).</li><li>Draw a point, a line or an area as a new attestation, with you named as its contributor.</li><li>Save the whole dataset as PLATO JSON, offered only once the version check has found nothing deleted or changed.</li><li>Large datasets: the map shows up to 50,000 places, and finds the rest by name.</li><li>Other basemaps than this site's own, used only once you allow them in the Permissions panel.</li><li>Lay a georeferenced historical map (a IIIF image, georeferenced with Allmaps) over the basemap, and trace places from it by hand or with assistance from its ink: what you trace cites the map and the georeference that places it.</li></ul><p class="in-guide"><a href="https://plato.pelagios.org/guide/tools.html#chora">Placing on the map, in the guide</a></p></div></details></li>
</ul>
</div>
<div class="tool-set" data-cards="2">
<h3 class="tool-group" id="tg-publish">Publish and keep</h3>
<ul class="tools choose" aria-labelledby="tg-publish">
<li class="tool"><a class="tool-link" href="#tool=publish" data-tool="publish"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M10 18v-7"/><path d="M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z"/><path d="M14 18v-7"/><path d="M18 18v-7"/><path d="M3 22h18"/><path d="M6 18v-7"/></svg><span class="plain-name">Publish</span></h4><p class="label"><span class="why greek-name" data-tip="Agora: the tool that does this. ἀγορά: the public square of a Greek city, where things were made known to all.">Agora</span></p><p>From checked to citable: what your dataset still needs to be FAIR, and its deposit files; a permanent address for every attestation; a web page for every place; and the w3id rules.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Publish (Agora)</span></summary><div class="more-body"><p>Prepares a dataset for publishing, in four parts, in order:</p><ol><li><strong>Mint</strong>: a copy in which every attestation has a permanent address of its own.</li><li><strong>Report</strong>: run on the minted copy, what its description still lacks to be FAIR (a title, authors with ORCIDs, a licence, a base address that will last), and the deposit files for a repository that gives it a DOI. It can also be run on the draft first, to see what the description lacks.</li><li><strong>Site</strong>: a website for GitHub Pages, with a page for each place.</li><li><strong>w3id</strong>: the rules that send your w3id.org addresses to that site.</li></ol><p>Nothing is uploaded: it writes files, and publishing them is for you to do.</p><p class="in-guide"><a href="https://plato.pelagios.org/guide/tools.html#publishing-your-dataset">Publishing your dataset, in the guide</a></p></div></details></li>
<li class="tool"><a class="tool-link" href="#tool=versions" data-tool="versions"><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/></svg><span class="plain-name">Compare versions</span></h4><p class="label"><span class="why greek-name" data-tip="Mneme: the tool that does this. μνήμη: memory. In a published dataset nothing is forgotten or quietly rewritten.">Mneme</span></p><p>Published is published. Compare two versions of your dataset and show that nothing was quietly changed or lost.</p><span class="go">Choose <span class="arrow" aria-hidden="true">→</span></span></a><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Compare versions (Mneme)</span></summary><div class="more-body"><p>Once a dataset is published, its attestations are only ever added to: a correction is a new attestation that withdraws or replaces the old one, which stays. Choose the new version, then the earlier one; they may be in different formats, since what is compared is what each attestation says.</p><p>A problem is an attestation missing, changed, or with its web address lost or altered; for the first few, the report shows what changed. A place or source described differently is a warning, since those may be corrected.</p><p class="in-guide"><a href="https://plato.pelagios.org/guide/tools.html#comparing-two-versions">Comparing two versions, in the guide</a></p></div></details></li>
</ul>
</div>
<div class="tool-set" data-cards="1">
<h3 class="tool-group" id="tg-explore">Explore</h3>
<ul class="tools choose" aria-labelledby="tg-explore">
<li class="tool coming"><span class="badge">Planned</span><h4><svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44"/><path d="m13.56 11.747 4.332-.924"/><path d="m16 21-3.105-6.21"/><path d="M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z"/><path d="m6.158 8.633 1.114 4.456"/><path d="m8 21 3.105-6.21"/><circle cx="12" cy="13" r="2"/></svg><span class="why" data-tip="περιπλέω: to sail around, the root of periplus, an ancient account of a voyage along a coast.">Peripleo</span></h4><p class="label">Visualisation</p><p>Explore many datasets together on a map, with their places over time, and share the view. Planned: Peripleo, the Pelagios map viewer, with the other tools preparing its data.</p><details class="more"><summary><span class="when-closed">More</span><span class="when-open">Less</span><span class="visually-hidden"> about Peripleo</span></summary><div class="more-body"><p>Peripleo is planned as the toolbox's visualisation tool, for exploring many datasets together on a map, over time. The other tools would prepare its data.</p></div></details></li>
</ul>
</div>
</div>
</nav>
</main>
<footer>
<p>Checked against PLATO <span id="plato-version">…</span>.</p>
<p>PLATO: <a href="https://plato.pelagios.org/guide/">the guide</a> · <a href="https://plato.pelagios.org/index-en.html">the ontology reference</a>. PLATO tools: <a href="https://github.com/pelagios/plato-tools">source code</a> (BSD 3-Clause), set in <a href="./fonts/Alegreya-OFL.txt">Alegreya</a> and <a href="./fonts/AlegreyaSans-OFL.txt">Alegreya Sans</a> (SIL Open Font Licence), the maps made in Chora in <a href="./fonts/NotoSans-OFL.txt">Noto Sans</a> (SIL Open Font Licence), with icons from <a href="./icons/Lucide-ISC.txt">Lucide</a> (ISC Licence). The map: <a href="https://www.naturalearthdata.com/">Natural Earth</a> (public domain), its shaded relief from NASA SRTM and USGS GMTED2010 (public domain), drawn with <a href="https://maplibre.org/">MapLibre GL JS</a> (BSD 3-Clause), historical maps with <a href="https://allmaps.org/">Allmaps</a> (MIT), and drawing with <a href="https://terradraw.io/">Terra Draw</a> (MIT). PLATO is published by the <a href="https://pelagios.org">Pelagios Network</a> Place Working Group. Development has been supported by the <a href="https://www.ishi.pitt.edu/">Institute for Spatial History Innovation (ISHI)</a> at the University of Pittsburgh.</p>
</footer>
<script type="module" src="./src/lib/tooltip.js"></script>
<script type="module" src="./src/app.js"></script>
</body>
</html>