Skip to content

Instantly share code, notes, and snippets.

lawlesst / tesseract-setup.ipynb
Last active Jun 3, 2021
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 Jul 7, 2020 gists
View .gitignore
lawlesst /
Last active May 21, 2020 — 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 Mar 15, 2019
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 Oct 17, 2016
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 5 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 Oct 6, 2016
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 Aug 17, 2016
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 Aug 15, 2016
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.
lawlesst /
Last active Sep 26, 2015
Notes on running ldf-server on Heroku with an HDT backend

September 25, 2015

Steps to run ldf-server on Heroku with an HDT backend.

  • Read the Node troubleshooting guide from Heroku for background.
  • Run the commands in the Start with a Blank Slate section of the guide.
  • Add package.json to your git repository if it isn't already.
  • For my project, I had to explicitly add hdt - 1.2.2 as a dependendency.