Skip to content

Instantly share code, notes, and snippets.

Notes on DCAT Distribution

New Solr fields

  1. dcat_distribution_sm
    • Array of escaped dcat:distribution strings
  2. dcat_landing_page_s
    • Replaces http://schema.org/url reference

Thumbnail

{
"date": null,
"host": null,
"lead": null,
"type": null,
"actor": null,
"donor": null,
"genre": null,
"judge": null,
"label": null,
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@type": "sc:Manifest",
"@id": "http://localhost:3000/concern/scanned_maps/ccfba492-79e2-46ba-9390-a5e9a021cb3c/manifest",
"label": [
"Vega"
],
"description": "I believe consistency and orthogonality are tools of design, not the primary goal in design.",
"viewingHint": "multi-part",
"metadata": [
@eliotjordan
eliotjordan / marc.go
Last active July 2, 2019 19:47
Process MARC XML with golang
package main
import (
"encoding/xml"
"fmt"
"strings"
"time"
"io/ioutil"
"os"
)
@eliotjordan
eliotjordan / gbl-2-0.json
Created October 26, 2017 19:00
Proposed GeoBlacklight 2.0 Solr Document
{
"geoblacklight_version": "2.0",
"dc_identifier_s": "http://purl.stanford.edu/cz128vq0535",
"dc_title_s": "2005 Rural Poverty GIS Database: Uganda",
"dc_description_s": "This polygon shapefile contains 2005 poverty data for 855 rural subcounties in Uganda. These data are intended for researchers, students, policy makers and the general public for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production.",
"dc_rights_s": "http://rightsstatements.org/vocab/NoC-OKLR/1.0/",
"dc_rights_holder_sm": [
"Stanford University"
],
"dc_visibility_s": "Public",
@eliotjordan
eliotjordan / gbl-dcat-distribution.json
Created July 24, 2017 19:32
Demo GeoBlacklight Doc for DCAT:Distribution
{
"dc_identifier_s": "http://hdl.handle.net/2451/38625",
"dc_title_s": "2015 LiDAR Flight 150326_115601 for Dublin City",
"dc_description_s": "This record contains aerial laser scanning (ALS) and photogrammetry data that corresponds to Flight 150326_115601, which is one part of data that was collected over an area of more than 2km² in Dublin, Ireland in 2015 and includes 3D point-cloud (LAZ), 3D full waveform LiDAR (LAS and Pulsewave), and ortho-rectified 2D rasters. Over 1.4 billion laser points were acquired (inclusive of partially covered areas). ALS was carried out by contractors using a TopEye system S/N 443. Imagery data was captured using a Phase One camera system. The average flying altitude was 300m with the total of 41 flight paths. This data was collected with funding from European Research Council Consolidator project RETURN – Rethinking Tunnelling in Urban Neighbourhoods [ERC-2012- StG-307836] and additional funding from Science Foundation Ireland [12/ERC/I2534]. For more information on th

Keybase proof

I hereby claim:

  • I am eliotjordan on github.
  • I am eliotjordan (https://keybase.io/eliotjordan) on keybase.
  • I have a public key whose fingerprint is FCDC D3BC C712 8F51 FC82 51BD DE7D CA89 0365 9642

To claim this, I am signing this object:

@eliotjordan
eliotjordan / gist:fd2a11495d2bb70895fba23d457dd4d6
Created October 10, 2016 20:00
Rubygems SSL certificate error fix
http://railsapps.github.io/openssl-certificate-verify-failed.html
$ rvm osx-ssl-certs status all
$ rvm osx-ssl-certs update all
https://github.com/rubygems/rubygems/issues/1736
brew update
brew install openssl
brew tap raggi/ale
@eliotjordan
eliotjordan / mapnik-for-ubuntu.txt
Created September 14, 2016 18:51
Install geo_concerns mapnik deps on ubuntu
apt-get update && apt-get install -y software-properties-common
add-apt-repository -y ppa:mapnik/nightly-2.3
apt-get update && apt-get upgrade -y && \
apt-get -y install \
gdal-bin \
libmapnik \
libmapnik-dev \
mapnik-utils \
mapnik-input-plugin-gdal \
mapnik-input-plugin-ogr
@eliotjordan
eliotjordan / gist:1db7714938f48df40c3341f77e108478
Created July 20, 2016 18:21
macos slow bundle install fix
My mac has an issue loading ruby gems from https://rubygems.org/. Until the root cause resolved, this workaround is helpful.
Setup a mirror:
$ bundle config mirror.https://rubygems.org http://rubygems.org
From http://stackoverflow.com/a/34940426