Skip to content

Instantly share code, notes, and snippets.

View workergnome's full-sized avatar

David Newbury workergnome

View GitHub Profile
@workergnome
workergnome / adjacency-list-to-edges.py
Last active May 13, 2020 17:31 — forked from chihming/adjacency-list-to-edges.py
convert an adjacency list to edge list format
import sys
"""
usage:
python adjacency-list-to-edges.py [adjacency-list-file] [edge-list-file]
example:
this program will help convert this:
[adjacency-list-file]
flower,fruit
carafe,flower,glass,window
flower,dew
@workergnome
workergnome / getty-vases.sparql
Last active July 1, 2021 18:44 — forked from ewg118/getty-vases.sparql
SPARQL query of Getty vesses from before 300 BC
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX getty: <https://data.getty.edu/>
prefix getty-media: <https://media.getty.edu/>
PREFIX aat: <http://vocab.getty.edu/aat/>
PREFIX la:<https://linked.art/ns/terms/>
PREFIX crmsci: <http://www.ics.forth.gr/isl/CRMsci/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>