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/* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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* |
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) |
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 |
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 |
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 |
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", |
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 --> |
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