Skip to content

Instantly share code, notes, and snippets.

Markus Lanthaler lanthaler

Block or report user

Report or block lanthaler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lanthaler
lanthaler / rdfa11.jsonld
Created Feb 28, 2013
A JSON-LD context defining the same IRI mappings as RDFa's initial context
View rdfa11.jsonld
{
"@context": {
"grddl": "http://www.w3.org/2003/g/data-view#",
"ma": "http://www.w3.org/ns/ma-ont#",
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rif": "http://www.w3.org/2007/rif#",
"rr": "http://www.w3.org/ns/r2rml#",
View On choosing a hypermedia type
A comparison of Collection+JSON, HAL, JSON-LD and SIREN media types.
@lanthaler
lanthaler / apibunny-middleware
Last active Aug 29, 2015
APItools middleware to convert apibunny.com responses to JSON-LD
View apibunny-middleware
return function(request, next_middleware)
local response = next_middleware()
if (response.headers['content-type'] == 'application/json') then
local data = json.decode(response.body)
if (data.mazes) then
data['@context'] = 'http://www.hydra-cg.com/examples/maze'
data['id'] = data.mazes[1].id
data['@type'] = 'Maze'
View gist:f7777baf1054106d3b61
<script type="application/ld+json">
{
"@context": [
"http://schema.org",
{ "@language": "en-ca" }
],
"@type": "Library",
"address": {
"@id": "_:address",
"@type": "PostalAddress",
View Onename verification
Verifying that +lanthaler is my blockchain ID. https://onename.com/lanthaler
You can’t perform that action at this time.