View .gitignore
This file contains 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
.ipynb_checkpoints/* |
View tesseract-setup.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .gitignore
This file contains 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
datasets/ | |
.ipynb* |
View clean_nbs.py
This file contains 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
import io | |
import sys | |
from nbformat import read, write | |
# Handle either stdin or a filename | |
if __name__ == '__main__': | |
for filename in sys.argv[1:]: | |
print(filename, file=sys.stderr) |
View rdflib_neptune.py
This file contains 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
""" | |
RDFLib SPARQLStore wrapper for use with Neptune | |
""" | |
import sys | |
import os | |
import warnings | |
from rdflib import URIRef, Graph, ConjunctiveGraph |
View top10_by_language_pages.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 5 columns, instead of 4. in line 9.
This file contains 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
name,pages,rank,wikidata,baseball_ref | |
Babe Ruth,55,1,http://www.wikidata.org/entity/Q213812,http://www.baseball-reference.com/players/r/ruthba01.shtml | |
Ichiro Suzuki,52,2,http://www.wikidata.org/entity/Q600,http://www.baseball-reference.com/players/s/suzukic01.shtml | |
Yogi Berra,46,3,http://www.wikidata.org/entity/Q367566,http://www.baseball-reference.com/players/b/berrayo01.shtml | |
Jackie Robinson,42,4,http://www.wikidata.org/entity/Q221048,http://www.baseball-reference.com/players/r/robinja02.shtml | |
Joe DiMaggio,40,5,http://www.wikidata.org/entity/Q297142,http://www.baseball-reference.com/players/d/dimagjo01.shtml | |
Jim Thorpe,39,6,http://www.wikidata.org/entity/Q221482,http://www.baseball-reference.com/players/t/thorpji01.shtml | |
Hank Aaron,36,7,http://www.wikidata.org/entity/Q215777,http://www.baseball-reference.com/players/a/aaronha01.shtml | |
Mickey Mantle,30,8,http://www.wikidata.org/entity/Q345004,http://www.baseball-reference.com/players/m/mantlmi01.shtml | |
Alex Rodriguez,29,9,http://www.wikidata.org/entity/Q558664 |
View incites_batch_lookup.py
This file contains 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
""" | |
Look up batches of UTs in InCites. | |
Run as: | |
$ python incites_batch_lookup.py sample_file.csv outputfile.csv | |
""" | |
import csv |
View vivo-sparql-datasource-config.json
This file contains 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
{ | |
"title": "Linked Data Fragments server", | |
"datasources": { | |
"local-vivo": { | |
"title": "VIVO", | |
"type": "VivoSparqlDatasource", | |
"description": "local VIVO", | |
"settings": { | |
"endpoint": "http://localhost:8080/vivo/api/sparqlQuery", |
View amr.xml
This file contains 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
<?xml version="1.0" encoding="UTF-8" ?> | |
<request xmlns="http://www.isinet.com/xrpc41" src="app.id=InternalVIVODemo"> | |
<fn name="LinksAMR.retrieve"> | |
<list> | |
<!-- authentication --> | |
<map> | |
<val name="username">xxx</val> | |
<val name="password">xxx</val> | |
</map> | |
<!-- what to to return --> |
View players_all.csv
We can't make this file beautiful and searchable because it's too large.
This file contains 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
birthCity,birthState,birthYear,lat,long | |
Aberdeen,MD,1935,39.515856,-76.170180 | |
Aberdeen,MD,1869,39.515856,-76.170180 | |
Aberdeen,MS,1901,33.828299,-88.554741 | |
Aberdeen,SD,1977,45.464678,-98.468104 | |
Aberdeen,SD,1893,45.464678,-98.468104 | |
Aberdeen,SD,1959,45.464678,-98.468104 | |
Aberdeen,SD,1943,45.464678,-98.468104 | |
Aberdeen,WA,1959,46.976677,-123.809718 | |
Aberdeen,WA,1914,46.976677,-123.809718 |
NewerOlder