Skip to content

Instantly share code, notes, and snippets.

@bertspaan
bertspaan / json-ld.json
Last active August 29, 2015 13:57
CitySDK JSON-LD test output
{
"@context":{
"@base":"http://rdf.citysdk.eu/ams/",
"name":"dc:title",
"cdk_id":"cdk:cdk_id",
"features":"cdk:apiResult",
"properties":"cdk:geojsonProperties",
"geojsonProperties": "_:geojsonProperties",
"date_created":"dc:date",
"layers":{
@bertspaan
bertspaan / cbs.json
Created March 12, 2014 15:34
JSON-LD context for CitySDK CBS layer
{
"name": "dc:title",
"aant_inw": "http://dbpedia.org/ontology/populationTotal‎",
"gm_code": {
"@id": "http://citysdk.eu/layers/cbs/fields/gm_code",
"@type": "xsd:string‎"
},
"opp_tot": {
"@id": "http://citysdk.eu/layers/cbs/fields/opp_tot",
"@type": "http://dbpedia.org/page/Hectare‎"
@bertspaan
bertspaan / README.md
Created January 2, 2014 15:28
Python script to convert DBF database file to CSV
@bertspaan
bertspaan / parking.rb
Last active January 1, 2016 05:28
Ruby script to add Amsterdam parking data to CitySDK
require 'citysdk'
$email = ARGV[1]
$password = ARGV[2]
@api = CitySDK::API.new("api.citysdk.waag.org")
@api.authenticate(email, passw)
layer = 'test.divv.parking.zone'
@bertspaan
bertspaan / crops.json
Created November 27, 2013 08:17
Gewassen met categorie
[
{
"name": "Aardappelen, bestrijdingsmaatregel AM",
"code": 2025,
"category": "aardappelen"
},
{
"name": "Aardappelen, consumptie op klei/lössgrond",
"code": 2951,
"category": "aardappelen"
@bertspaan
bertspaan / waterschapsgrenzen.topojson
Created October 24, 2013 07:31
Waterschapsgrensen in TopoJSON, nieuwe versie
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / gijs.svg
Last active December 25, 2015 21:09
Stijn & Gijs!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / put.rb
Created October 15, 2013 19:45
CitySDK: Ruby script to add data to node `pc.nlp4.3514`
require 'citysdk'
$email = ARGV[1]
$password = ARGV[2]
@api = CitySDK::API.new("api.citysdk.waag.org")
@api.authenticate(email, passw)
data = {
data: {
@bertspaan
bertspaan / waterschapsgrenzen.topojson
Created October 12, 2013 17:33
Waterschapsgrensen in TopoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertspaan
bertspaan / talking-data.json
Created September 27, 2013 13:40
Talking Data example
[
{
"id": "engelandpolen",
"name": "Engeland - Polen",
"type": "wood",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"drawing\" style=\"\"><g class=\"leaflet-zoom-hide\" ><g class=\"edges\"><line stroke=\"#000000\" stroke-width=\"20\" x1=\"141.24971070648908\" y1=\"254.13772587128165\" x2=\"1024.16725749531\" y2=\"422.95733860084147\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"1025.3497765037134\" y1=\"441.63234992014986\" x2=\"670.6502234962867\" y2=\"557.3676500798501\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"645.6658341124474\" y1=\"533.0487832933884\" x2=\"740.3341658875526\" y2=\"213.95121670661166\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"722.8558664907038\" y1=\"202.78220629828812\" x2=\"486.1441335092962\" y2=\"411.2177937017119\" class=\"\"/><line stroke=\"#000000\" stroke-width=\"20\" x1=\"468.6131550713538\" y1=\"400.0331967026343\" x2=\"519.3868449286462\" y2=\"227.96680329736571\" class=\"\