Skip to content

Instantly share code, notes, and snippets.

View hcayless's full-sized avatar

Hugh A. Cayless hcayless

View GitHub Profile
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix cito: <http://purl.org/spar/cito/> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lawd: <http://lawd.info/ontology/> .
@prefix gawd: <http://gawd.atlantides.org/terms/> .
@prefix lr: <http://lawd.info/ontology/relationships> .
@prefix oa: <http://www.openannotation.org/ns/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix s: <http://example.org/snap> .
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:cito="http://purl.org/spar/cito/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:lawd="http://lawd.info/ontology/"
xmlns:gawd="http://gawd.atlantides.org/terms/"
xmlns:lr="http://lawd.info/ontology/relationships"
xmlns:oa="http://www.openannotation.org/ns/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
{
"@context": {
"oa" : "http://www.w3.org/ns/oa#",
"cnt" : "http://www.w3.org/2011/content#",
"dc" : "http://purl.org/dc/elements/1.1/",
"dcterms": "http://purl.org/dc/terms/",
"dctypes": "http://purl.org/dc/dcmitype/",
"foaf" : "http://xmlns.com/foaf/0.1/",
"rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
@hcayless
hcayless / add document
Created August 29, 2013 17:46
Some fields have been trimmed for clarity's sake. The transcription_ia field is itself tokenized, but it gets copied to the (untokenized) field named untokenized_ia. You can find the string that should be matched by searching for "νινισ ασκλα".
<add>
<doc>
<field name="project">IDP</field>
<field name="collection">ddbdp</field>
<field name="id">http://papyri.info/ddbdp/p.mich;4.2;359B</field>
<field name="identifier">p.mich.4.2.359B</field>
<field name="identifier">0163;4.2;359B</field>
<field name="identifier">http://papyri.info/ddbdp/p.mich;4.2;359B</field>
<field name="transcription">σ μητρὸσ Ταμύσθασ Ἁρπαγάθησ Πνεφερῶτοσ τοῦ Πεκμήιτοσ μητρὸσ Ταπεθέωσ ε Πτολεμαῖοσ υἱὸσ μητρὸσ Θαήσεωσ ε Πνεφερῶσ Πεθέωσ τοῦ Πετεσούχου μητρὸσ Θαισᾶτοσ ξδ Ὀννῶφρισ Πνεφερῶτοσ τοῦ Φανομγέωσ μητρὸσ Ταπεθέωσ ξγ Φανομγεὺσ Φανομγέωσ τοῦ Φανομγέωσ μητρὸσ Ταπτοσίρεωσ ξη Πτολεμαῖοσ ἀδελφὸσ μητρὸσ τῆσ αὐτῆσ ὁμοίωσ Πνεφερῶσ Ἁρφαήσεωσ τοῦ Πνεφερῶτοσ μητρὸσ Ταπονδῶτοσ π Βῆσισ Πεθέωσ τοῦ Ἀκουσιλάου μητρὸσ Θερμούθεωσ ὁμοίωσ Ὀννώφρεωσ τοῦ Σαμβᾶ μητρὸσ Θερμούθεωσ οδ Πετσῖρισ Πετεσούχου τοῦ Πεθέωσ μητρὸσ Ἀπίασ ογ Πτολεμαῖοσ Ἀπύγχεωσ τοῦ Αὐνίουσ μητρὸσ Ταπεθέωσ Ἡρᾶσ Ὀννώφρεωσ τοῦ Ὀννώφρεωσ μητρὸσ Σωπᾶτοσ Ἀθηνίων Ὥρου τοῦ Πακύσεωσ μητρὸσ Ἡρᾶτ
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">3080</int>
<lst name="params">
<str name="debugQuery">true</str>
<str name="indent">true</str>
<str name="q">untokenized_ia:/.*νιν.{1,20} ασκλα.*/</str>
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">2069</int>
<lst name="params">
<str name="debugQuery">true</str>
<str name="indent">true</str>
<str name="q">untokenized_ia:/.*νιν.{1,20}\bασκλα.*/</str>
@hcayless
hcayless / gist:4560326
Created January 17, 2013 22:15
Roma error
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!-- *********************************************************************************************************** -->
<!-- *********************************************************************************************************** -->
<error msg="Failed to compile stylesheet. 1 error detected." exclass="class pl.psnc.dl.ege.exception.ConverterException" >pl.psnc.dl.ege.exception.ConverterException: Failed to compile stylesheet. 1 error detected.
at pl.psnc.dl.ege.MultiXslConverter.convert(MultiXslConverter.java:107)
at pl.psnc.dl.ege.component.NamedConverter.convert(NamedConverter.java:44)
at pl.psnc.dl.ege.ConversionPerformer.run(ConversionPerformer.java:44)
at java.lang.Thread.run(Thread.java:619)
</error>
@hcayless
hcayless / gist:4558556
Created January 17, 2013 18:55
tei-install.sh diff
--- P5/Utilities/.svn/text-base/tei-install.sh.svn-base Thu Nov 15 13:45:04 2012
+++ P5/Utilities/.svn/tmp/tei-install.sh.tmp Thu Jan 17 14:05:10 2013
@@ -51,7 +51,6 @@
Roma) name=Roma; pname=tei-roma;;
*) echo "Error: package $package unsupported"; exit 1;;
esac
-rm -f ${pname}-${version}.zip
${ECHO} curl -O -s $dir/${pname}-${version}.zip || \
die "Unable to fetch package $dir/${pname}-${version}.zip"
${ECHO} mkdir -p ${Vault}/${name}/${version}
"Checked against the original. The tops of the first two letters can be made out (not entirely clear on the image whether it is shadow or ink). The final upper tip of μ as in the μ at the beginning of lin21 and the top section of ε as in the ε in the name Θεοδώρου in lin2 are clear to me. I suggest reading μ̣ε̣[σι]τ̣ειαν, so instead of the suggested <:<:[μεσι]τίαν|reg|μ̣ε̣[σι]τ̣είαν:>=PN H. Cuvigny (photograph)|ed|[εἰς ἀσφά]λ̣ειαν:>, I propose to insert <:μ̣ε̣[σι]τ̣είαν=PN H. Cuvigny (photograph) and J. Cowey (original)|ed|[εἰς ἀσφά]λ̣ειαν:>. I prefer to retain the form μεσιτείαν, which is the standard LSJ form and also found more frequently than the form μεσιτίαν in the papyri."
@hcayless
hcayless / gist:3176532
Created July 25, 2012 14:44
busted idnos
./HGV59/58928.xml
./HGV65/64956.xml
./HGV65/64994.xml
./HGV65/64646.xml
./HGV65/64856.xml
./HGV14/13538b.xml
./HGV39/38164a.xml
./HGV39/38164b.xml
./HGV64/63311.xml
./HGV64/63998.xml