Skip to content

Instantly share code, notes, and snippets.

xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
(: for each row/record in the zoteroid file where there is no text node for the element uritype :)
for $row in fn:doc("/db/apps/workingdocs/zoteroid.xml")/root/row
let $author := normalize-space($row/authorabbr/text())
let $title := normalize-space($row/titleabbr/text())
let $zoteroid := $row/zotero/text()
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
(: for each row/record in the persnames file :)
for $newname in fn:doc("/db/apps/workingdocs/persnamesdone.xml")//tei:div/tei:p/tei:persName
let $matchid := $newname/@xml:id
(: for each persName xml:id in Syriaca.org person records:)
let $oldname :=
@davidamichelson
davidamichelson / allpersnames
Last active August 8, 2016 01:08
Grabs all Persnames for Editing
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
declare function local:download-xml($node, $filename) {
response:set-header("Content-Disposition", concat("attachment;
filename=", $filename))
,
response:stream(
$node,
'indent=yes' (: serialization :)
904
1339
1348
1436
1545
1739
1826
1858
1859
1938
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
for $doc in fn:collection("/db/apps/incomplete-saints")//tei:TEI
let $fiey := $doc//tei:bibl[matches(@xml:id, "bib\d+-2") and tei:ptr[@target="http://syriaca.org/bibl/650"]]
let $zanetti := $doc//tei:bibl[matches(@xml:id, "bib\d+-1") and tei:ptr[@target="http://syriaca.org/bibl/649"]]
<bibl xml:id="ClemonsChecklist">
<author>James T. Clemons</author>
<title xml:lang="en" level="a">A Checklist of Syriac Manuscripts in the United
States and Canada.</title>
<ptr target="http://syriaca.org/bibl/632"/>
<citedRange unit="pp">508</citedRange>
</bibl>
1. http://syriaca.org/person/1527/tei Zwanarse
2. http://syriaca.org/person/1528/tei Cyriacus
3. http://syriaca.org/person/1535/tei
4. http://syriaca.org/person/1537/tei Abdat al-Ahad
5. http://syriaca.org/person/1542/tei
6. http://syriaca.org/person/1568/tei Agrippa
7. http://syriaca.org/person/1570/tei
8. http://syriaca.org/person/1572/tei
9. http://syriaca.org/person/1583/tei Ananias
A. Amore/M. Chiara Celletti
A. Harrak
A. Moreschini
A. Scheil
A. van Lantschoot
A. Vööbus
A.E. Look
Assemani
Barsaum
Bas Snelders
, Australian Early Medieval Association Journal
'Die Personennamen in den Akten der edessenischen Märtyrer Šarbēl und Bar Sāmyā'
"A Newly Discovered Wall Painting in the Church of Mar Giworgis in Qaraqosh, Iraq"
"Abgar"
"Bar 'Eta"
"Barsamyā, Märtyrer in Edessa"
"Children as Pilgrims and the Cult of the Holy Children in the Early Syriac Tradition: The Cases of Theodoret of Cyrrhus and the Child-Martyrs Behnām, Sarah, and Cyriacus"
"Christlicher Heiligenkult im Umkreis eines sassanidischen
"Commemoraisons"
"Die Legende von Mar Behnam"
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
for $doc in fn:collection("/db/apps/incomplete-saints")//tei:TEI
let $abstract := $doc//tei:note[@type='abstract']
let $uri := $doc//tei:publicationStmt//tei:idno[@type="URI"]
let $name := $doc//tei:persName[@xml:lang="en"]
return