This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +lanthaler is my blockchain ID. https://onename.com/lanthaler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": [ | |
"http://schema.org", | |
{ "@language": "en-ca" } | |
], | |
"@type": "Library", | |
"address": { | |
"@id": "_:address", | |
"@type": "PostalAddress", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A comparison of Collection+JSON, HAL, JSON-LD and SIREN media types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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#", |