Skip to content

Instantly share code, notes, and snippets.

View dr0i's full-sized avatar

Pascal Christoph dr0i

View GitHub Profile
Adamsfeld: Q28531092
Altenufer: Q28845194
Bandesmühle: Q24928613
Bathey: Q5994963
Bavert: Q28528026
Bergerbrühl: Q24175856
Bergerfurth: Q26208579
Blumental: Q26271448
Bochum-Süd: Q3641512
Borkenwirthe: Q23854151
@dr0i
dr0i / gist:e970054262bb8efa86035683fa395fa5
Created February 7, 2017 09:37
elasticsearch child aggregation: item owner
curl -XGET 'http://gaia.hbz-nrw.de:9200/resources/_search?pretty=true' -d '
{
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "köln"
}
}
}
It was created by pwsafe.cpp configure 0.2.1beta, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = erde
<div vocab="http://schema.org/" typeof="Corporation">
<span property="name">akika</span>
<span property="sameAs">http://www.medicalgraphics.de/</span>
Contact Details:
<div rel="address">
<div typeof="PostalAddress">
Main address:
<span property="streetAddress">Vogeslanger Str. 286</span>
<span property="postalCode">50825</span>
<span property="addressLocality" xml:lang="en" >Cologne, Germany</span>
@dr0i
dr0i / gist:7357697
Created November 7, 2013 16:43
Hbz01-stats-example.java
/* Copyright 2013 hbz, Pascal Christoph.
* Licensed under the Eclipse Public License 1.0 */
package org.lobid.lodmill;
import java.io.File;
import java.io.IOException;
import org.culturegraph.mf.morph.Metamorph;
import org.culturegraph.mf.stream.converter.xml.XmlDecoder;
import org.culturegraph.mf.stream.source.DirReader;
#!/bin/bash
# version 20120611
# author: dr0ide
# Copyright 2011 dr0ide. The program is distributed under the terms of
# the GNU General Public License, see https://www.gnu.org/licenses/gpl-3.0.html
#
#TODO:
# 1. if http://de.dbpedia.org/ontology/wikiPageRedirects exists then fetch it.
# because only there resides the information if it is "wikiPageDisambiguates" ,
# e.g. http://de.dbpedia.org/resource/Bücherei , respectively said property is NOT