Skip to content

Instantly share code, notes, and snippets.

View rsimon's full-sized avatar

Rainer Simon rsimon

View GitHub Profile
@rsimon
rsimon / amber-void.ttl
Last active September 20, 2016 19:11
Amber Routes VoID dummy
@prefix : <http://my-domain.org/my-data/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<https://github.com/kgeographer/topotime/hroutes> a void:Dataset;
# MANDATORY
dcterms:title "Historical Routes from Topotime";
# OPTIONAL
{
"bbox": [
16.8224041,
42.7657037,
16.8224041,
42.7657037
],
"connectsWith": [
"1004"
],
<html>
<head>
<title>Annotorious OpenSeadragon Test Page</title>
<script src="openseadragon/openseadragon.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/theme-dark/annotorious-dark.css" />
<script type="text/javascript" src="http://localhost:9810/compile?id=annotorious"></script>
<script type="text/javascript">
annotorious.plugin.HelloWorldPlugin = function(opt_config_options) { }
annotorious.plugin.HelloWorldPlugin.prototype.initPlugin = function(anno) {
{
"size" : 0,
"aggs" : {
"is_conflation_of" : {
"nested" : {
"path" : "is_conflation_of"
},
"aggs" : {
"source_gazetteer" : {
"terms" : { "field" : "is_conflation_of.source_gazetteer" }
{
"size" : 5,
"query" : {
"nested" : {
"path" : "is_conflation_of.names",
"query" : {
"match" : { "is_conflation_of.names.name": "athens" }
}
}
}
{
"size" : 5,
"query" : {
"nested" : {
"path" : "is_conflation_of",
"query" : {
"bool": {
"should": [
{ "match" : { "is_conflation_of.title": "athenae" } },
{
@rsimon
rsimon / annotation.json
Last active November 27, 2015 08:32
ElasticSearch Mapping for Pelagios annotations
{
"object": {
"properties": {
"identifier": { "type": "string", "index": "not_analyzed" },
"homepage": { "type": "string", "index": "no" },
"is_in_dataset": {
"type": "nested",
"properties": {
"identifier": { "type": "string", "index": "not_analyzed" },
"title": { "type": "string", "index": "no" }
@rsimon
rsimon / common.json
Created November 27, 2015 07:51
ElasticSearch Mapping for Pelagios 'Common Object Properties'
{
"object": {
"properties": {
"identifier": { "type": "string", "index": "not_analyzed" },
"object_type": { "type": "string", "index": "not_analyzed" },
"title": { "type": "string" },
"description": { "type": "string" },
"homepage": { "type": "string", "index": "no" },
"is_in_dataset": {
"type": "nested",
  • Install the Tile Layer Plugin
  • The tile layer plugin needs to be configured with tile sources. Configuration works via tab-separated-value (.tsv) files. Locate the plugin's default .tsv directory. This depends on you platform, but will ususally be some place like:
.qgis2/python/plugins/TileLayerPlugin/layers/
C:\Users\rsimon\.qgis2/pyhton/plugins/TileLayerPlugin/layers
@rsimon
rsimon / gist:411cffc81edbd9a3604e
Last active August 29, 2015 14:02
Adding columns to a Postgres table
sudo -u postgres psql recogito
ALTER TABLE gdocuments ADD COLUMN geo_origin character varying(254);
ALTER TABLE gdocuments ADD COLUMN geo_findspot character varying(254);
ALTER TABLE gdocuments ADD COLUMN geo_author_location character varying(254);