Some sample SPARQL queries for KB endpoint
Cover art lookup service:
http://coverservice.bibliotheek.nl/cover/image/{isbn}
Examples:
{ | |
"@context": { | |
"@base": "http://qa.data.nxp.com/id/", | |
"id": "@id", | |
"data": "@graph", | |
"dct": "http://purl.org/dc/terms/", | |
"skos": "http://www.w3.org/2004/02/skos/core#", | |
"nxp": "http://purl.org/nxp/schema/v1/", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", |
Some sample SPARQL queries for KB endpoint
Cover art lookup service:
http://coverservice.bibliotheek.nl/cover/image/{isbn}
Examples:
#List of RDF classes and for each, the number of instances | |
#Liste des classes RDF et pour chacune, le nombre d'instances | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX dcat: <http://www.w3.org/ns/dcat#> | |
PREFIX dgfr: <http://colin.maudry.com/ontologies/dgfr#> | |
select distinct ?class (count(?thing) as ?numInstances) where { | |
graph <http://www.data.maudry.com> { |
<template id="footer"> | |
<div class="container-fluid"> | |
<div class="contact"> | |
<h2 class="contact__title">Contact us</h2> | |
<p class="contact__text"><strong>Semaku B.V.</strong> SFJ4.009 Gebouw Videolab | Torenallee 20, 5617BC Eindhoven | <a href="mailto:info@semaku.com">info@semaku.com</a></p> | |
<ul class="social__icons"> | |
<li><a href="https://twitter.com/semaku"><i class="fa fa-twitter fa-2x"></i></a></li> | |
<li><a href="https://www.linkedin.com/company/semaku"><i class="fa fa-linkedin fa-2x"></i></a></li> | |
<li><a href="https://github.com/semaku"><i class="fa fa-github fa-2x"></i></a></li> | |
</ul> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html id="ta_vp_BUK7Y8R7-60E" lang="en-us" xml:lang="en-us"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"></meta> | |
<meta content="(C) Copyright 2005" name="copyright"></meta> | |
<meta content="(C) Copyright 2005" name="DC.rights.owner"></meta> | |
<meta content="p-topic" name="DC.Type"></meta> | |
<meta content="Applications" name="DC.Title"></meta> |
This Gist implements a prototype vocabulary and Linked Data representation for resources from the BreweryDB API.
The wrapper supports most endpoints from the BreweryDB API serving a JSON-LD response by default. The JSON-LD representation is generated from the original JSON using the index.php script. Only requests made using GET method are currently supported.
Examples:
[ | |
{ | |
"title":"Farbe", | |
"id":"color", | |
"type":"multiple", | |
"choices": [ | |
{"id":"facet1-1","value":"Ableiter rot"}, | |
{"id":"facet1-1","value":"anthrazit"}, | |
{"id":"facet1-1","value":"beige"}, | |
{"id":"facet1-1","value":"blassgrün"}, |
{ | |
"@context": "https://w3id.org/rdw/contexts/vehicles", | |
"@id": "", | |
"success" : true, | |
"resource" : { | |
"@id": "#this", | |
"Aantalcilinders" : 4, | |
"Aantalstaanplaatsen" : null, | |
"Aantalzitplaatsen" : 5, | |
"BPM" : 3082, |
{ | |
"@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#", | |
"dcterms": "http://purl.org/dc/terms/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"rdwv": "https://w3id.org/rdw/vehicles#", | |
"defines": {"@reverse": "rdfs:isDefinedBy"}, | |
"rdfs:domain": {"@type": "@id"}, |
{ | |
"@context": { | |
"@language": "nl", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"rdwv": "https://w3id.org/rdw/vehicles#", | |
"dbpedia": "http://dbpedia.org/resource/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"label": "http://www.w3.org/2000/01/rdf-schema#label", | |
"resource": "foaf:topic", |