概要

I looked into how to use “Peripleo,” so here are my notes. “Peripleo” is described as follows.

Peripleo is a browser-based tool for the mapping of things related to place.

https://github.com/britishlibrary/peripleo

This time, I will introduce how to use it in combination with “Rekichizu” (historical maps) introduced in the following article.

Output

You can try it at the following URL.

https://nakamura196.github.io/peripleo/

The repository is as follows.

https://github.com/nakamura196/peripleo

In this blog post, I will use the following “Bird’s-eye View of Buildings in the Main Campus and Faculty of Agriculture of Tokyo Imperial University” (held by the University of Tokyo Agricultural and Life Sciences Library) as sample data.

https://iiif.dl.itc.u-tokyo.ac.jp/repo/s/agriculture/document/187cc82d-11e6-9912-9dd4-b4cca9b10970

Background

I participated in the following conference and learned about “Peripleo.” I would like to thank all those involved in developing “Peripleo,” those who organized the conference, and Gethin Rees who taught me how to use it.

http://codh.rois.ac.jp/conference/linked-pasts-10/

Basic Usage

Details are described at the following link.

https://github.com/britishlibrary/peripleo?tab=readme-ov-file#installation-guide

This time, I will introduce the customizations made when using the data from “Bird’s-eye View of Buildings in the Main Campus and Faculty of Agriculture of Tokyo Imperial University.”

Preparing the Data

Prepare a spreadsheet like the following.

https://docs.google.com/spreadsheets/d/1ZZJZL0K4cBOc0EgMHNV9NQ56C_fcZm0eceBg_OPmxe4/edit?usp=sharing

Gray cells are unnecessary columns.

Once the data is ready, download it in CSV format.

Converting to JSON Format

Use a tool called Locolligo to convert the CSV data to JSON format.

https://github.com/docuracy/Locolligo

First, access the following.

https://docuracy.github.io/Locolligo/

After uploading the CSV file, pressing “Assign CSV Columns” displays the following.

It seemed that using reserved words in the CSV headers eliminates the need for manual mapping. If mapping doesn’t work properly, configure it manually.

The reserved words could be confirmed at the following link.

https://github.com/docuracy/Locolligo/blob/main/js/data-converter.js

fu$v]n(a[[[[[[[[[[[[[[[[[;c'r'''''''''''''''''t#(@ppgggnllddddtt{iaaiirreeeaiieeeeyycossgdooooomnnppssppunssn'ppmmmekkiicceesiio,eeeeesssccrrsstaggr'rrttt[[[ttii[[osnneittrrr000iipp00ms'm)diiyyy]]]oott]]}i)e'eee......nnii..'g.n]nsscccttissooil]nrt,t..ooooyd[[nnda(eOit%oooppe00sseb)mpfi%rrroen]][[ne{otit%dddn't..00tlviel'iiiy]i@t]]i'eore]nnnm,fii..f]Cn',aaa'idt@vi,lsu,ttt,e'liaeau'eee'r]edlrs=itssst',''u'sdi'[[o]]]e]([|t,01p,,,','il']]o]tdec''n,ho,,yr@no''moiarll'bdmdoa]''eint,)]|ngi;,laitattubeudesdel|e|'c|l]ola,ootrn|dgns|lrOntSghG|iBen'ag]s|,tsionugt|hwiensgt|iYn'g]|,X'],

When you download the results, you can obtain data with items like the following stored in features.

{},"""}"}"]"]"]@tp,g,d,t,liyreeyidpooppn"ep"m""]i{}e{}k{}:"etetccss:rityot"""ttrpoi::h"ilyer13o""""tFee""d35n@t[l[ites"::i9.siiadpa":n.7"dtbest:{"a71:"len:u"Pt60:elt/r{oe29[""i/eis20"::fu"n"93hiv, t:47t""e-"9trv,[,p"4s:.:"n"/"e/htitlitiipffsy.:.d/al/p.epin/t.#cw?.imu/ka-intGpiorefkadeydisouat.a.=atohcert.gtjS/ppcws/hi:iok/ioi/il/nfGa/ork2faa/dmaAuuggarrrtaiie1cc_9uuS6llc.tthguuoirrotealh_l_urobeaf.%n_i2dMoFe/nLdpoiioufcr_eittnaaSeltc__eiapmenrondonc_/oeFucsashcaFugkaleact/nuyazl_gutor%yfi2_cFoMu0fel0dt0Aiu2gcr.rietin/icemfu,a/l_n1tUi1unf1rie2evs6,et.r.0Tsj,his8eto1yn2U_&4nox.ify0v_w,eTh1ro=0sk10iy10to1,y"2160o.0f00%/T26oC0k80y1,2"40./0d%e2fCa1u0l0t0.%j2pCg1"0,00",

Starting the Viewer

!

Below, I introduce how to work by downloading the source code locally, but as described in the peripleo README.md introduced at the beginning, you can also update files through the GitHub GUI.

gcpidyttphceolrnoinp-elmehohttttpps.:s/e/rgvietrhub.com/britishlibrary/peripleo.git

Then, accessing the following allows you to check the default display content.

http://localhost:8000/docs/

If running locally and git or python -m http.server doesn’t work properly, please refer to other articles on the internet.

Changing Viewer Settings

Updating Data

First, copy the contents of the JSON downloaded earlier and overwrite the following file.

docs/data/VisitPlus-UK.lp.json

After reloading the browser and navigating toward Tokyo, you can confirm that the custom data is displayed as shown below.

Updating Settings

The viewer settings are in the following file.

docs/peripleo.config.json

Make changes as follows.

{}"]""]i,md,n1313aa{}i3535ptt9.9._a""""i.7.7s"nfsaa7071t:aortl5767ymrct_7676l[em"rb3,3e"a:io,,":tbu:""un":.td"/ish"do"tLan:tIt"pNa:[sK/:EV"/Di/_smPiiLteAPrCluEunSse"-.,UgKi.t"lh,pu.bj.sioon//"r,Gerkaidcuhaitzeu-Sscthyoloel/sotfylAegsr/iscturleteutr/asltyalned.jLsiofne",Sciences/FacultyofAgriculture,TheUniversityofTokyo"

First, change initial_bounds to the area around the University of Tokyo.

Also, change map_style to “Rekichizu.”

Furthermore, change the attribution as well.

As a result, custom data is displayed on “Rekichizu” as shown below.

Feature Introduction

By setting depictions[0].@id, thumbnail images are displayed. The link destination uses the value set in identifier.

When enlarged, the string set in depictions[0].title is displayed.

Also, Related Web Resources are displayed based on the dbpedia link set in links[0].identifier.

Furthermore, filtered search is possible based on the value of types[0].label.

まとめ

There may be some inaccurate or incomplete explanations, but I hope this serves as a useful reference.

I found it very convenient that by conforming to the Linked Places Format (LPF), such applications become available.

https://github.com/LinkedPasts/linked-places-format/blob/master/README.md