Skip to content

Instantly share code, notes, and snippets.

View pietercolpaert's full-sized avatar
🎯
Building Linked Data Event Streams

Pieter Colpaert pietercolpaert

🎯
Building Linked Data Event Streams
View GitHub Profile
@pietercolpaert
pietercolpaert / irail-log.txt
Created February 1, 2020 11:47
iRail autocompetion log for Belgian railway stations
a
aa
aal
aals
aalst
b
br
bru
z
ze
@pietercolpaert
pietercolpaert / archief.jsonld
Created May 9, 2018 12:09
Example of JSON-LD for Het Archief.be
{
"@context": {
"dcterms": "http://purl.org/dc/terms/",
"hydra": "http://www.w3.org/ns/hydra/core#",
"schema" : "http://schema.org/",
"foaf:topicOf": {
"@id": "http://xmlns.com/foaf/0.1/topicOf",
"@type": "@id"
}
},
@pietercolpaert
pietercolpaert / parking.html
Last active July 6, 2016 20:03 — forked from PjGeeroms/parking.html
Datex2 Rdfa Parking
<!--Maps data to both schema and datex. I extended datex with URIs from dublin core terms (dct) and geo. Where possible, I added boht schema and datex approach-->
<html prefix="dtx: http://vocab.datex.org/terms#
dct: http://purl.org/dc/terms/
schema: http://schema.org/
geo: http://www.w3.org/2003/01/geo/wgs84_pos#">
<article typeof="dtx:ParkingSite schema:ParkingFacility" resource="{{urlFromPage}}">
<h2 property="dct:title schema:name">{{data.name}}</h2>
<p property="dct:spatial schema:address">{{data.address}}</p><!--We should have a more readable address here. Schema.org has a better example: http://schema.org/address (see RDFa and JSONLD examples)-->
<p property="">{{data.city}}</p><!--We can map a city to a URI... Should we? Furthermore: shouldn't this be part of the address property?-->
<p property="dtx:contactDetailsTelephoneNumber schema:telephone">{{data.telephone}}</p>
@pietercolpaert
pietercolpaert / index.js
Last active October 8, 2015 14:13
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var request = require('request');
request('http://irail.be',{protocol:'http'}, function (err, response) {
console.log("Now should contain https in the uri: ", response.request.uri.href);
});
@pietercolpaert
pietercolpaert / index.js
Last active September 12, 2015 18:22
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var ldf = require('ldf-client');
var fragmentsClient = new ldf.FragmentsClient('http://fragments.dbpedia.org/2014/en');
var query = 'SELECT * { ?s ?p <http://dbpedia.org/resource/Belgium>. ?s ?p ?o } LIMIT 10',
results = new ldf.SparqlIterator(query, { fragmentsClient: fragmentsClient });
@pietercolpaert
pietercolpaert / index.js
Created March 17, 2014 19:25
requirebin sketch
// try requiring some modules from NPM and then hit Run
require('cat-picture')
@pietercolpaert
pietercolpaert / map.geojson
Created August 28, 2013 23:34
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pietercolpaert
pietercolpaert / map.geojson
Created August 28, 2013 16:47
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pietercolpaert
pietercolpaert / map.geojson
Created August 27, 2013 08:17
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pietercolpaert
pietercolpaert / .emacs
Created January 31, 2012 00:08
My .emacs file
(load "~/elisp/autoloads" 'install)
(add-to-list 'load-path "~/elisp/")
(set-frame-height (selected-frame) 48)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(csv-separators (quote (";")))
'(cua-mode t nil (cua-base))