Last active
December 18, 2015 22:09
-
-
Save caschwartz/5852423 to your computer and use it in GitHub Desktop.
XQuery - Query to find TEI documents lacking biographies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xquery version "1.0-ml"; | |
| (: 4/18/13 Query to find TEI documents lacking biographies :) | |
| declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
| declare namespace localtei = "http://digital.library.ptsem.edu/lectures/tei"; | |
| declare namespace dc = "http://purl.org/dc/elements/1.1/"; | |
| let $teiDocs := fn:collection() | |
| for $teiDoc in $teiDocs | |
| let $creator := $teiDoc/tei:TEI/tei:teiHeader/localtei:metadata/dc:creator | |
| let $note := $teiDoc/tei:TEI/tei:text/tei:body/tei:note | |
| where fn:not($note[@type = "bio"]) | |
| order by fn:base-uri($creator) | |
| return fn:base-uri($creator) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment