Skip to content

Instantly share code, notes, and snippets.

View mejackreed's full-sized avatar
🐧

Jack Reed mejackreed

🐧
View GitHub Profile
@mejackreed
mejackreed / Welcome.md
Last active August 29, 2015 14:15
GeoBlacklight Workshop

Welcome

WiFi

Network name: "PSAV Meeting Room"

Password: osu2015

Workshop URL: http://geoblacklight.org ... Click on "Tutorials" ... Click on "A hands on introduction to GeoBlacklight - Code4Lib 2015 Workshop"

@mejackreed
mejackreed / schema.xml
Created February 23, 2015 23:55
Solr 4.10.3 default configs
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@mejackreed
mejackreed / index.html
Created March 17, 2015 19:00
EarthWorks Schema.org Microdata
<dl class="dl-horizontal">
<dt class="blacklight-dc_creator_sm">Author(s)</dt>
<dd class="blacklight-dc_creator_sm"><span itemprop="author">Circuit Rider Productions</span></dd>
<dt class="blacklight-dc_description_s">Description</dt>
<dd class="blacklight-dc_description_s"><span itemprop="description"><div class="truncate-abstract">This layer shows the areas of the USGS 1:100,000 quadrangle boundary maps that are within the watershed boundaries of the Russian River basin.This shapefile contains the boundaries of the 100k quadrangles of California to be used for geographic reference.</div></span></dd>
<dt class="blacklight-dc_publisher_s">Publisher</dt>
<dd class="blacklight-dc_publisher_s"><span itemprop="publisher">Circuit Rider Productions</span></dd>
<dt class="blacklight-dct_spatial_sm">Place(s)</dt>
<dd class="blacklight-dct_spatial_sm"><span itemprop="spatial"><a href="/?f%5Bdct_spatial_sm%5D%5B%5D=Russian+River+Watershed+%28Calif.%29"><sp
@mejackreed
mejackreed / wx587tc1912_to_html.html
Last active August 29, 2015 14:18
ISO and FGDC to html
<html xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Airports: Tuxtla Gutierrez, Mexico, 2010 (ISO 19139)</title>
<link href="xsl/metadata.css" rel="stylesheet" type="text/css">
</head>
<body class="bodyText">
<h1 class="toolbarTitle">Airports: Tuxtla Gutierrez, Mexico, 2010 (ISO 19139)</h1>
<hr>
@mejackreed
mejackreed / iso2html.xsl
Last active August 29, 2015 14:18
Markup of Kim's iso2html
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gts="http://www.isotc211.org/2005/gts"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:gml="http://www.opengis.net/gml"
exclude-result-prefixes="gmd gco gml srv xlink gts">
@mejackreed
mejackreed / setup.md
Created June 5, 2015 16:11
GeoBlacklight Workshop Setup Instructions

1 . Using the provided VirtualBox virtual machine (using Vagrant) System Requirements: 1. Install VirtualBox 4.3.20 Download for: Windows, OS X, Linux 2. Install Vagrant 2. Setting the application up locally (recommended only for OS X and Linux users) System Requirements: 1. Install Ruby (2.1.6 or 2.2.2 recommended) 2. Install Rails (> 4.2 ) 3. Install Git 4. Install Java (check here to see if your system has Java installed)

WiFi

Network name: "HYATT-MEETING"

Password: INDIANA15

Workshop URL: http://geoblacklight.org ... Click on "Tutorials" ... Click on "A hands on introduction to GeoBlacklight - Code4Lib 2015 Workshop"

Make sure to copy "geoblacklight_workshop" from provided thumb drive to your local computer

@mejackreed
mejackreed / embed_footer.rb
Last active August 29, 2015 14:23
Embed to React
@mejackreed
mejackreed / Readme.md
Created July 7, 2015 17:24
MODs to RDF - hierarchicalGeographic

We should stop creating geographic hierarchies in descriptive metadata period.

Geographic hierarchy can be a maintenance burden and difficult to update over time. It falls short in a lot of areas and doesn't really give us what we need for discovery.

My recommendation

Capture the most granular geographies within the metadata, no need to list the entire tree.

** Example ** from https://github.com/OpenGeoMetadata/edu.stanford.purl/blob/master/bc/899/yk/4538/mods.xml

##
# Creates a CartoDB OneClick link link, using the configuration link
# @param [String] file_link
# @return [String]
def cartodb_link(file_link)
params = URI.encode_www_form(
file: file_link,
provider: application_name,
logo: Settings.APPLICATION_LOGO_URL
)