Skip to content

Instantly share code, notes, and snippets.

View jermnelson's full-sized avatar

Jeremy Nelson jermnelson

View GitHub Profile
@jermnelson
jermnelson / myth-map.ttl
Last active November 2, 2017 20:46
Theseus and the Minotaur RDF Graph
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://sws.geonames.org/6697802/> a schema:AdministrativeArea ;
schema:geo [ a schema:GeoCoordinates ;
@jermnelson
jermnelson / .gitignore
Last active April 1, 2016 21:08
DPLA JSON to Redis Protocol Script
*.swp
*.resp
@jermnelson
jermnelson / Dockerfile
Created July 7, 2015 15:27
Adds Elasticsearch war to Docker image, source for default image of jermnelson/semantic-server-base
FROM jermnelson/semantic-server-core
MAINTAINER "Jeremy Nelson <jermnelson@gmail.com>"
# $CATALINE_HOME is defined in source image
COPY webapps/elasticsearch.war $CATALINA_HOME/webapps/elasticsearch.war
@jermnelson
jermnelson / Dockerfile
Last active August 29, 2015 14:24
Dockerfile for Semantic Server Backend using Tomcat as the application server with Fedora 4, Blazegraph deployed as webapps. This gist builds the jermnelson/semantic-server-core Docker images
FROM java:8-jre
MAINTAINER "Jeremy Nelson <jermnelson@gmail.com>"
ENV CATALINA_HOME /usr/local/tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
RUN mkdir -p "$CATALINA_HOME"
WORKDIR $CATALINA_HOME
# see https://www.apache.org/dist/tomcat/tomcat-8/KEYS
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys \
We couldn’t find that file to show.
@jermnelson
jermnelson / .a_name
Last active August 29, 2015 14:18
BIBCAT Prospector Ingestion Class
Prospector MARC21 Ingester
@jermnelson
jermnelson / default
Created March 18, 2015 19:01
BIBCAT nginx default configuration file
# BIBCAT nginx default configuration using uwsgi socket
# for bibframe-catalog
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
@jermnelson
jermnelson / marc2dc.py
Created March 11, 2015 16:09
Command-line script for converting MARC21 to Dublin Core XML
"""Python script for converting MARC21 to Dublin Core XML
Usage:
Command-line
$ mkdir output_xml
$ cp marc2dc.py output_xml/.
$ cd output_xml
$ python marc2dc.py --marc E:\Research\test-marc-file.mrc
"""
@jermnelson
jermnelson / input_csv
Created April 17, 2013 17:55
Short python script for Wooster big data audit question for Oberlin Group list-server
"""
"""
import csv
import os
import argparse
@jermnelson
jermnelson / wordpress-nelson.html
Created October 22, 2012 16:48
Code4Lib - Building a Library App Portfolio using MARCR, RDA, and Redis
<p>By <a id="refauthor" href="#author">Jeremy Nelson</a></p>
<h2>Background</h2>
<p>
Colorado College's Tutt Library is a small urban academic library serving the needs of
around 2,000 students along with faculty and staff at a private liberal arts college located in
Colorado Springs, Colorado. As a member of the Colorado Alliance of Research Libraries, a
consortium of academic and public libraries in Colorado and Wyoming, we participate in a
union catalog comprising of the collections from member institutions. We operate our
own instance of III's Millennium ILS and our Islandora/Fedora institutional repository is