Skip to content

Instantly share code, notes, and snippets.

View RubenVerborgh's full-sized avatar

Ruben Verborgh RubenVerborgh

View GitHub Profile

Open-source webslides die iedereen kan delen en aanpassen

Gedaan met lelijke, verwarrende en gesloten PowerPoint-slides. Ik stel voor om lesmateriaal zoals slides open-source te maken en ze in een online samenwerkingsplatform te plaatsen. Dan kunnen studenten comments posten, vragen stellen, en aanpassingen voorstellen. De beste lesgevers leren immers van hun studenten, dus waarom passen we dit principe ook niet toe op slides, hét meestgebruikte lesmateriaal?

Ik stel voor om slides in HTML te maken, de manier waarop ook websites in elkaar zitten. De voordelen van HTML zijn:

  • Slides zijn leesbaar op ieder toestel – ook mobiel.
  • Aangezien HTML focust op de structuur in plaats van op de opmaak, krijg je eenvoudigere slides die er minder verwarrend uitzien.
  • Voeg met gemak YouTube-filmpje, tweets uit Twitter, interactieve webpagina's toe aan slides. Alles wat op het Web staat, kan je gebruiken!
  • Je kan slides bewerken in je favoriete programma.
@RubenVerborgh
RubenVerborgh / fragment.json
Last active October 29, 2015 10:39
Triple Pattern Fragments after paging property changes
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"owl": "http://www.w3.org/2002/07/owl#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"dc": "http://purl.org/dc/terms/",
"dcterms": "http://purl.org/dc/terms/",
"dc11": "http://purl.org/dc/elements/1.1/",
@RubenVerborgh
RubenVerborgh / sparqljs-browser.js
Created October 27, 2015 16:18
SPARQL.js 1.1.3 browser version
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.sparqljs = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
},{}],2:[function(require,module,exports){
(function (process){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to
Verifying that +rubenverborgh is my blockchain ID. https://onename.com/rubenverborgh
# curl -H "Accept: text/turtle" http://dbpedia.org/sparql
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ns1: <http://dbpedia.org/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
ns1:sparql rdf:type sd:Service ;
sd:endpoint ns1:sparql ;
sd:feature sd:DereferencesURIs ,
sd:UnionDefaultGraph .
@prefix ns3: <http://www.w3.org/ns/formats/> .
ns1:sparql sd:resultFormat ns3:RDFa ,
@RubenVerborgh
RubenVerborgh / iri-resolution.jsonld
Last active June 29, 2016 12:51
Turtle IRI resolution compliance test
[
{
"@context": {"@base": "http://a/bb/ccc/d;p?q", "urn:ex:p": {"@type": "@id"}},
"@graph": [
{"@id": "urn:ex:s001", "urn:ex:p": "g:h"},
{"@id": "urn:ex:s002", "urn:ex:p": "g"},
{"@id": "urn:ex:s003", "urn:ex:p": "./g"},
{"@id": "urn:ex:s004", "urn:ex:p": "g/"},
{"@id": "urn:ex:s005", "urn:ex:p": "/g"},
{"@id": "urn:ex:s006", "urn:ex:p": "//g"},
@RubenVerborgh
RubenVerborgh / results.log
Created August 27, 2015 11:49
IRI resolution of different Turtle parsers
A. Resolving without leading ./ or ../
BASE http://example.org/xxx/yyy/zzz, resolving aaa/bbb/ccc
EYE http://example.org/xxx/yyy/aaa/bbb/ccc
cwm http://example.org/xxx/yyy/aaa/bbb/ccc
N3.js http://example.org/xxx/yyy/aaa/bbb/ccc
Serd http://example.org/xxx/yyy/aaa/bbb/ccc
B. Resolving with non-leading ./ or ../
BASE http://example.org/xxx/yyy/zzz, resolving aaa/./bbb/ccc
@RubenVerborgh
RubenVerborgh / fragment.trig
Last active August 29, 2015 14:21
Example Triple Pattern Fragment
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dc11: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
# Without content negotiation, we get back an invalid content type
$ curl -LI http://rdf.ebi.ac.uk/dataset/atlas/13.07
HTTP/1.1 303 See Other
Server: Apache/2.2.15 (Red Hat)
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 04 Feb 2015 11:36:31 GMT
Location: https://www.ebi.ac.uk/rdf/services/atlas/servlet/explore?uri=http://rdf.ebi.ac.uk/dataset/atlas/13.07
Transfer-Encoding: chunked
Connection: Keep-Alive
@RubenVerborgh
RubenVerborgh / acronyms.tex
Created December 4, 2014 09:15
Easily typeset acronyms
\usepackage{xspace}
\newcommand\Acronym[1]{%
\expandafter\def\csname#1\endcsname{{\scshape #1}\xspace}%
\expandafter\def\csname#1s\endcsname{{\scshape #1}s\xspace}%
}
\Acronym{api}
\Acronym{rest}
\Acronym{sparql}
\sparql is not a \rest \api.