Skip to content

Instantly share code, notes, and snippets.

View nichtich's full-sized avatar
🦊
not a fox

Jakob Voß nichtich

🦊
not a fox
View GitHub Profile
@nichtich
nichtich / README.txt
Created June 8, 2010 11:50
Simple PDF file indexing with Solr
This gist contains two files for simple indexing of PDF files.
== requirements ==
First you need to install Solr (which requires a Java JDK): Download a tar or zipfile at http://www.apache.org/dyn/closer.cgi/lucene/solr/ and unpack it to a directory of your choice. Go into this directory and start solr running in jetty by:
$ cd example
$ java -jar start.jar
Then locate your browser to http://localhost:8983/solr/
<?php
/**
* This script reuses the RELAX NG Compact schema files that can be found at
* http://bitbucket.org/bdarcus/csl-schema
*/
// load types and variables from RNC schema
$csl_types = array();
foreach( file('csl-types.rnc') as $line ) {
#!/usr/bin/perl
use strict;
use warnings;
=head1 NAME
Code4LibBib - extract Code4lib Journal Bibliography
=head1 DESCRIPTION
@nichtich
nichtich / wiktionarylookup.html
Created November 12, 2010 19:10
Look up a word in Wiktionary via MediaWiki API and show the Wiktionary page
<html>
<head>
<script type="text/javascript" src="./jquery-1.4.3.min.js"></script>
<script type="text/javascript">
var baseURL = 'http://en.wiktionary.org';
function showPage(page,text) {
var sourceurl = baseURL + '/wiki/' + page;
$('#pagetitle').text(page);
$('#wikiInfo').html(text);
$('#sourceurl').attr('href',sourceurl);
@nichtich
nichtich / skosc2csv.pl
Created January 7, 2011 14:54
Create CSV overview of a SKOS classification
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
=head1 NAME
skosc2csv.pl - Create CSV overview of a SKOS classification
@nichtich
nichtich / pica2json.pl
Created January 17, 2011 22:49
Wandelt PICA+ (egal welche Form) nach JSON (ohne Subfield-Ordnung)
#!/usr/bin/perl
use strict;
use warnings;
=head1 NAME
pica2json - Wandelt PICA+ (egal welche Form) nach JSON (ohne Subfield-Ordnung)
=cut
@nichtich
nichtich / colla.owl.n3
Created January 20, 2011 09:54
Quick draft for a collation ontology
#################################################################
# URI Prefixes
#################################################################
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ns: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix skos: <http://www.w3.org/2008/05/skos#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@nichtich
nichtich / rdfimport.pl
Created January 25, 2011 12:16
Handy command line script to import RDF data with RDF::Trine
#!/usr/bin/perl
use strict;
no strict 'subs';
use warnings;
=head1 NAME
rdfimport - Import RDF data into some Triple store
@nichtich
nichtich / viaflookup.pl
Created February 17, 2011 16:32
Make use of VIAF authority records
#!/usr/bin/perl
=head1 NAME
viaflookup.pl - How to make use of VIAF authority records
=head1 VERSION
Version 0.2 - 2011-02-18
@nichtich
nichtich / EDM-v52-100730.ttl
Created March 9, 2011 16:40
Europeana Data Model v5.2 from http://is.gd/4sX8WC
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : <http://www.europeana.eu/schemas/edm/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix abc: <http://metadata.net/harmony/abc#> .
@prefix DOLCE-Lite: <http://www.loa-cnr.it/ontologies/DOLCE-Lite.owl#> .
@prefix wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ore: <http://www.openarchives.org/ore/terms/> .
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .