Overview

This article tries out the MyCapytain library below.

https://github.com/Capitains/MyCapytain

Background

In the following article, I covered CTS (Canonical Text Service).

The following page provides explanations of CITE, CTS, and CapiTainS.

https://brillpublishers.gitlab.io/documentation-cts/DTS_Guidelines.html

The following document is about CITE, a system for the identification of texts and any other object. CTS is the name for the identification system itself. CapiTainS is the name for the software suite built around it. Before we go into details, we need to ask two questions:

Furthermore, the MyCapytain library used this time is described as follows.

MyCapytain is a python library which provides a large set of methods to interact with Text Services API such as the Canonical Text Services, the Distributed Text Services. It also provides a programming interface to exploit local textual resources developed according to the Capitains Guidelines.

Setup

gcpspidyoittupMhrcyocilCnenoasnp-teymvatelhavnltievtnn/-pbrsi:nr/v/e/eaqgncuivtitirhveuambte.enctosm./tCxatpitains/MyCapytain

Usage: DTS (Distributed Text Services)

Sample programs are available at the following location.

https://github.com/Capitains/MyCapytain/blob/dev/notebooks/Example DTS Remote Resolver.ipynb

It queries the Alpheios.net API below.

http://texts.alpheios.net/api/dts

For example, the following code searches for each text that can be read by Alpheios.

fr#r##rpreoerosWoTiaimoethtdnleatMvg=ndb(yeeol"CrtrweeWaees_ep=tscyhornoftHeleoloatvttluitrerennporihcd.Do.eatrttgvvi%eseeeossRctnoeoMdssclsleyeovoltne=leleaanlrvcdmresetaiaoc.ritcnotd(oaaytit"n(l.osh)lmrn.tyiesatsappasdti:liah_/lnbav/glt1tteehtDcixeeeamtxsnpsrtco.esebraa:netlddpabapHhbenateltrtiecsspoDaeDserdt.se"sncfReeu%etnls/dloaawelpninvitt(e/shrrdet:tashd"iia)tsblboern_oecwosolenleahcuuttgioeomnarste)ip)coasliltyortiheesAPIuntil

Usage: CTS (Canonical Text Service)

For CTS usage, sample programs are published at the following location, but they did not work as-is.

https://mycapytain.readthedocs.io/en/latest/

First, it appears that http://cts.dh.uni-leipzig.de/api/cts/ has been changed to http://cts.informatik.uni-leipzig.de/pbc/cts/.

The following modification was necessary.

#frformomMyMCyaCpayptyatiani.nr.ertertireiveevresr.sc.tcst5s5imipmoprotrtHtCtTpSCtsRetriever

By modifying the program as follows, I was able to make successful queries.

frp#prearotsPimrsaniastMegs(yveapCegaar=espsy=riatesgaHteitrn)ntio.pewrCveteetsrqrR.uiegaetelvrteiPtreaosvs.estcraht(ges"e5h(st"titurmprip:nno/:gr/ctctctsoHs:nt.pttibepncnCf:ttobsrioRmbfealttehri.tikpte.apvur:ena/ril/-lcletelsi..peiznnigfg.o.krdimena/gtpjibakcm./eucsnt:is1-/.l"3e)"i)pzig.de/pbc/cts/?request=GetPassage&urn=urn:cts:pbc:bible.parallel.eng.kingjames:1.3

The following result was obtained.

<<?G/xe<<Gmtr/r/elPe<<re<<<<rtaqrrepuplsePvsueeqlraiopaeseqquynsculsrasuue>>seryssgteesuanc>aie>sstrgsegott>nee>enxNU:>>h>=marcNPt"lmntout1ne>swbp.s>u:l:0=Grpti/""enbhc/ht:cepetPc:Dantatbsorcpssiemao:s:brald/aplpili/gbeenenrec.n<lge<:pt/t=l/bale"arirwixUxebaactTnqllse.Fguelni-.e.emsn8osploef"rta.r>o?gNree/>/aandnmlgsasel.ut/>ekbaslit/t.nireglrunjecgattt.mhrukeairisneen:v/g1ae1j.nd.a3y0m<v"e/bisueax:ram1nsCl.>tan3ns<oo:/fnari=etc"qhahueltetsfTptie:Uex/rlt/ndr>Sewelhraivxcinhcge.tohhretgt/LpnO:sR//D/ccoGtmospd.aithniafbdoirlmmiaatdtyei/ka..nunAnonitd-altheieiopnszsai/ig1d..d0ue"n/tpxobmclt/nhcset:stw/eoimw=ai"nthht,tCpYT:eS/a/Uw,RwNwh.auttrehni:-Gccot.dso:rspgab/icnd:sb/,i1b.Yl0ee".>sphaarlalllneolt.eenagt.koifngejvaemreys:t1r.e3e</osfoutrhcee>garden?Andthewomansaiduntotheserpent,Wemayeatofthefruitofthetreesofthegarden:Butofthefruitofthetreewhichisinthemidstofthegarden,Godhathsaid,Yeshallnoteatofit,neithershallyetouchit,lestyedie.Andtheserpentsaiduntothewoman,Yeshallnotsurelydie:ForGoddothknowthatinthedayyeeatthereof,thenyoureyesshallbeopened,andyeshallbeasgods,knowinggoodandevil.Andwhenthewomansawthatthetreewasgoodforfood,andthatitwaspleasanttotheeyes,andatreetobedesiredtomakeonewise,shetookofthefruitthereof,anddideat,andgavealsountoherhusbandwithher;andhedideat.Andtheeyesofthembothwereopened,andtheyknewthattheywerenaked;andtheysewedfigleavestogether,andmadethemselvesaprons.AndtheyheardtheoiceoftheLORDGodwalkinginthegardeninthecooloftheday:andAdamandhiswifehidthemselvesfromthepresenceoftheLORDGodamongstthetreesofthegarden.AndtheLORDGodcalleduntoAdam,andsaiduntohim,Whereartthou?Andhesaid,Iheardthyoiceinthegarden,andIwasafraid,becauseIwasnaked;andIhidmyself.Andhesaid,Whotoldtheethatthouwastnaked?Hastthoueatenofthetree,whereofIcommandedtheethatthoushouldestnoteat?Andthemansaid,Thewomanwhomthougavesttobewithme,shegavemeofthetree,andIdideat.AndtheLORDGodsaiduntothewoman,Whatisthisthatthouhastdone?Andthewomansaid,Theserpentbeguiledme,andIdideat.AndtheLORDGodsaiduntotheserpent,Becausethouhastdonethis,thouartcursedaboveallcattle,andaboveeverybeastofthefield;uponthybellyshaltthougo,anddustshaltthoueatallthedaysofthylife:AndIwillputenmitybetweentheeandthewoman,andbetweenthyseedandherseed;itshallbruisethyhead,andthoushaltbruisehisheel.Untothewomanhesaid,Iwillgreatlymultiplythysorrowandthyconception;insorrowthoushaltbringforthchildren;andthydesireshallbetothyhusband,andheshallruleverthee.AnduntoAdamhesaid,Becausethouhasthearkeneduntotheoiceofthywife,andhasteatenofthetree,ofwhichIcommandedthee,saying,Thoushaltnoteatofit:cursedisthegroundforthysake;insorrowshaltthoueatofitallthedaysofthylife;Thornsalsoandthistlesshallitbringforthtothee;andthoushalteattheherbofthefield;Inthesweatofthyfaceshaltthoueatbread,tillthoureturnuntotheground;foroutofitwastthoutaken:fordustthouart,anduntodustshaltthoureturn.AndAdamcalledhiswife'snameEve;becauseshewasthemotherofallliving.UntoAdamalsoandtohiswifedidtheLORDGodmakecoatsofskins,andclothedthem.AndtheLORDGodsaid,Behold,themanisbecomeasoneofus,toknowgoodandevil:andnow,lestheputforthhishand,andtakealsoofthetreeoflife,andeat,andliveforever:ThereforetheLORDGodsenthimforthfromthegardenofEden,totillthegroundfromwhencehewastaken.Sohedroveouttheman;andheplacedattheeastofthegardenofEdenCherubims,andaflamingswordwhichturnedeveryway,tokeepthewayofthetreeoflife/passage>

Summary

This was just a basic functionality check, but I hope it serves as a useful reference.