This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
=head1 NAME | |
Code4LibBib - extract Code4lib Journal Bibliography | |
=head1 DESCRIPTION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
=head1 NAME | |
skosc2csv.pl - Create CSV overview of a SKOS classification |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
=head1 NAME | |
pica2json - Wandelt PICA+ (egal welche Form) nach JSON (ohne Subfield-Ordnung) | |
=cut |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################# | |
# 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#> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
no strict 'subs'; | |
use warnings; | |
=head1 NAME | |
rdfimport - Import RDF data into some Triple store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
=head1 NAME | |
viaflookup.pl - How to make use of VIAF authority records | |
=head1 VERSION | |
Version 0.2 - 2011-02-18 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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#> . |
OlderNewer