Skip to content

Instantly share code, notes, and snippets.

lawlesst / .gitignore
Last active October 8, 2021 20:45
Sample notebooks for Constellate:
View .gitignore
lawlesst / tesseract-setup.ipynb
Last active June 3, 2021 15:33
Constellate Binder Tesseract
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.
lawlesst / .gitignore
Last active July 7, 2020 16:06 gists
View .gitignore
lawlesst /
Last active May 21, 2020 11:28 — forked from cmoscardi/
Jupyter Notebook Output Cleaning Script
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)
lawlesst /
Created March 15, 2019 20:05
Connect RDFLib's SPARQL Store to Amazon Neptune
RDFLib SPARQLStore wrapper for use with Neptune
import sys
import os
import warnings
from rdflib import URIRef, Graph, ConjunctiveGraph
lawlesst / top10_by_language_pages.csv
Last active October 17, 2016 02:40
baseball and wikidata fame
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 columns, instead of 4. in line 9.
Babe Ruth,55,1,,
Ichiro Suzuki,52,2,,
Yogi Berra,46,3,,
Jackie Robinson,42,4,,
Joe DiMaggio,40,5,,
Jim Thorpe,39,6,,
Hank Aaron,36,7,,
Mickey Mantle,30,8,,
Alex Rodriguez,29,9,
lawlesst /
Last active October 6, 2016 18:59
Lookup UTs in AMR and output to CSV.
Look up batches of UTs in InCites.
Run as:
$ python sample_file.csv outputfile.csv
import csv
lawlesst / vivo-sparql-datasource-config.json
Last active August 17, 2016 17:58
Config for LDF Server VivoSparqlDatasource
View vivo-sparql-datasource-config.json
"title": "Linked Data Fragments server",
"datasources": {
"local-vivo": {
"title": "VIVO",
"type": "VivoSparqlDatasource",
"description": "local VIVO",
"settings": {
"endpoint": "http://localhost:8080/vivo/api/sparqlQuery",
lawlesst / amr.xml
Last active August 15, 2016 15:10
Sample call and response for Links AMR web service
View amr.xml
<?xml version="1.0" encoding="UTF-8" ?>
<request xmlns="" src="">
<fn name="LinksAMR.retrieve">
<!-- authentication -->
<val name="username">xxx</val>
<val name="password">xxx</val>
<!-- what to to return -->
View players_all.csv
We can't make this file beautiful and searchable because it's too large.