Skip to content

Instantly share code, notes, and snippets.

View paregorios's full-sized avatar

Tom Elliott paregorios

View GitHub Profile
@paregorios
paregorios / new JSON for Phaselis
Created March 5, 2014 12:35
Example of new Pleiades Entity "issue3" JSON output in which pleiades.geographer seems to have been successful creating the reprPoint and bbox
{
"connectsWith":[
],
"recent_changes":[
{
"comment":"DARE feature tag fix.",
"username":"sgillies",
"fullname":"Sean Gillies",
"modified":"2012-10-23T19:32:01Z"
@paregorios
paregorios / original JSON for Phaselis
Created March 5, 2014 12:41
Example of production JSON view for a Pleiades place
{
"connectsWith":[
],
"recent_changes":[
{
"modified":"2012-10-23T19:32:01Z",
"principal":"sgillies"
},
{
{
"connectsWith":[
],
"recent_changes":[
{
"modified":"2014-03-05T11:47:05Z",
"principal":"thomase"
},
{
{
"connectsWith":[
],
"recent_changes":[
{
"modified":"2012-10-23T19:33:55Z",
"principal":"sgillies"
},
{
{
"connectsWith":[
],
"recent_changes":[
{
"comment":"DARE feature tag fix.",
"username":"sgillies",
"fullname":"Sean Gillies",
"modified":"2012-10-23T19:33:55Z"
63/62505.xml
70: <div type="bibliography" subtype="ancientEdition">
71- <listBibl>
72- <bibl type="publication" subtype="ancient">
73- <author ref="http://data.perseus.org/catalog/urn:cts:greekLit:tlg1595">Philodemus<certainty cert="low" locus="value" target="#FR1177"/>
74- </author>
75- <title type="main"
76- level="m"
77- ref="http://www.trismegistos.org/authorwork/933">De pietate<certainty cert="low" locus="value" target="#FR1177"/>
78- </title>
$ saxon -xsl:navigator/pn-xslt/MakeHTML.xsl -o:/Users/paregorios/Downloads/foo.html -s:idp.data/DCLP/81/80756.xml collection="dclp" analytics="no" cssbase="../../css" jsbase="../../js"
template match="t:TEI" mode="metadata"
t:title=='P.Herc 1485'
idno@type="TM"=='80756'
$md-collection=='dclp'
$file-uri=='file:/Users/paregorios/Documents/files/D/dclp-xslt/idp.data/DCLP/81/80756.xml
$ jruby -S rake
rake aborted!
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
org/jruby/RubyKernel.java:1065:in `require'
/Users/paregorios/Documents/files/D/dclp-xslt/xsugar/Rakefile:1:in `(root)'
org/jruby/RubyKernel.java:1081:in `load'
/Users/paregorios/Documents/files/D/dclp-xslt/xsugar/Rakefile:3:in `(root)'
(See full trace by running task with --trace)
$ jruby -S rake
(in /Users/paregorios/Documents/files/D/dclp-xslt/xsugar)
/Users/paregorios/.rbenv/versions/jruby-1.6.8/bin/jruby -I"lib:test" "/Users/paregorios/.rbenv/versions/jruby-1.6.8/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_assertions.rb" "test/test_commentary_assertions.rb" "test/test_commentary_grammar.rb" "test/test_commentary_helper.rb" "test/test_grammar.rb" "test/test_helper.rb" "test/test_translation_assertions.rb" "test/test_translation_grammar.rb" "test/test_translation_helper.rb"
Loaded suite /Users/paregorios/.rbenv/versions/jruby-1.6.8/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
..........
$ jruby -S rake coverage:ddb DDB_DATA_PATH=../idp.data/DDB_EpiDoc_XML/bgu/bgu.7
(in /Users/paregorios/Documents/files/D/dclp-xslt/xsugar)
./lib/../lib/rxsugar_helper.rb:5 warning: already initialized constant XSUGAR_JAR_PATH
./lib/../lib/rxsugar_helper.rb:6 warning: already initialized constant DEFAULT_GRAMMAR
./lib/../lib/rxsugar_helper.rb:7 warning: already initialized constant TRANSLATION_GRAMMAR
./lib/../lib/rxsugar_helper.rb:8 warning: already initialized constant COMMENTARY_GRAMMAR
rake aborted!
no such file to load -- json
/Users/paregorios/Documents/files/D/dclp-xslt/xsugar/Rakefile:63:in `(root)'
(See full trace by running task with --trace)