Skip to content

Instantly share code, notes, and snippets.

View vai2fc's full-sized avatar

Veronica Ikeshoji-Orlati vai2fc

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

xquery version "3.1";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
let $doc := "/bluemountain-transcriptions/periodicals/bmtnaab/issues/1920/02_01/bmtnaab_1920-02_01.tei.xml"
for $id in fn:doc($doc)/tei:TEI//*/fn:data(@xml:id)
let $metadata := fn:doc($doc)/tei:TEI//*[@xml:id=$id]
let $article := fn:doc($doc)/tei:TEI//*[@corresp=$id]
let $tei :=
@vai2fc
vai2fc / mini-neo4j-sample-data.csv
Last active April 17, 2017 16:12
mini dataset for neo4j
PAINTER PAINTER_ID LOCATION_CITY COLLECTION_NAME TRENDALL_ID
Adolphseck Painter 1 Boston Museum of Fine Arts 4.52
Adolphseck Painter 1 Naples MANN 4.54
Adolphseck Painter 1 Lecce Museo Provinciale Sigismondo Castromediano 4.56
Adolphseck Painter 1 Brussels Private Collection (I. Errera) 4.57
Adolphseck Painter 1 St. Petersburg Hermitage Museum 4.58
Adolphseck Painter 1 Paris Louvre 4.59
Ariadne Painter 2 Naples MANN 1.111
Ariadne Painter 2 London British Museum 1.114
Ariadne Painter 2 Lisbon Palácio de Belém 01.118a
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
let $sectionsofinterest := collection('/db/bmtn-data/transcriptions')/tei:date[@when > xs:date("1900-01-01")]
let $allmusicsections := collection('/db/bmtn-data/transcriptions')//tei:classCode[.='Music']/ancestor::tei:relatedItem[@type='constituent']
return count($sectionsofinterest)
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
let $musicsections := collection('/db/bmtn-data/transcriptions')//tei:classCode[.='Music']/ancestor::tei:relatedItem[@type='constituent']
return $musicsections
xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
let $classes := collection('/db/bmtn-data/transcriptions')//tei:classCode[#scheme='CCS']
return distinct-values($classes)
@vai2fc
vai2fc / zotero-ws-resources.md
Last active August 15, 2017 15:27
Resources for February 2017 digital scholarship workshop on Zotero, Vanderbilt Libraries

Zotero Workshop Resources

Download the Zotero standalone and choose your web browser plug-in

Zotero Standalone

Add things to your library from:

Acorn

An ISBN: 9780424000633

xquery version "3.1";
declare function local:lookup-sentences($word as xs:string, $id as xs:string, $key as xs:string) {
let $request :=
<http:request href="https://od-api.oxforddictionaries.com/api/v1/entries/en/{$word}/sentences" method="get">
<http:header name="app_key" value="{$key}"/>
<http:header name="app_id" value="{$id}"/>
</http:request>
return http:send-request($request)
};
@vai2fc
vai2fc / 2017-02-markdown-ws-links.md
Last active February 10, 2017 17:34
2017-02-10 resources