I hereby claim:
- I am cgueret on github.
- I am cgueret (https://keybase.io/cgueret) on keybase.
- I have a public key ASAMtIKFyfgiuSJEw9HYzsapdrdWZ8VMzCZDOOPn6-Ej1Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# The RDF document describing the dataset | |
<http://example.org/cat> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> <http://example.org/cat> . | |
<http://example.org/cat> <http://www.w3.org/2000/01/rdf-schema#label> "RDF description for cats"@en-GB <http://example.org/cat> . | |
<http://example.org/cat> <http://purl.org/dc/terms/license> <http://www.gnu.org/copyleft/fdl.html> <http://example.org/cat> . | |
<http://example.org/cat> <http://xmlns.com/foaf/0.1/primaryTopic> <http://example.org/cats#id> <http://example.org/cat> . | |
<http://example.org/cats#id> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/ns/void#Dataset> <http://example.org/cat> . | |
<http://example.org/cats#id> <http://www.w3.org/2000/01/rdf-schema#label> "Cats !"@en-GB <http://example.org/cat> . | |
<http://example.org/cats#id> <http://rdfs.org/ns/void#subset> <http://example.org/image#id> <http://example.org/cat> . | |
# The document describing a picture and a cat |
<?php | |
/** | |
* Search for entities | |
* | |
* This example issues a search against Acropolis and then enhance the result | |
* set by fetching additional data for each entry. The result is a set of | |
* entities available in the RES platform. | |
* | |
* The approach consists in issuing two calls: | |
* - Fetch a the simplified list of results |
<?php | |
/** | |
* Find assets associated to a particular topic | |
* | |
* In this example we search for all the assets related to a particular topic. | |
* This topic has to be identified by its URI. In order to find the relevant | |
* URI a first call to a search (see "search.php") can be necessary. | |
* | |
* @copyright Copyright (c) 2016 BBC | |
* @license http://unlicense.org/ |
{ | |
"name": "guerec01/snippets", | |
"require": { | |
"easyrdf/easyrdf": "^0.9.1" | |
}, | |
"authors": [ | |
{ | |
"name": "Christophe Gueret", | |
"email": "christophe.gueret@bbc.co.uk" | |
} |
# encoding: utf-8 | |
""" | |
Detects loops in the triggers | |
Heavily based on https://git.bbcarchdev.net/res/docker/blob/master/graphite/collect.py | |
""" | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
import psycopg2 |
import requests | |
RESOURCE = "http://acropolis.org.uk/921df22045f949c5967a4d5e9dd0e653#id" | |
print "# No asking for anything" | |
r = requests.get(RESOURCE) | |
print 'Received {}'.format(r.headers['content-type']) | |
print r.text[:100] | |
print "\n# Asking for application/n-quads" |
SYSINFO_POSITION right | |
NAME raspberrypi | |
DESCRIPTION_STRING Raspberry Pi Logo | |
BEGIN_LOGO | |
[01;32m .~~. .~~. | |
'. \ ' ' / .' [01;31m ___ _ ___ _ | |
[01;31m .~ .~~~..~. | _ \__ _ ____ __| |__ ___ _ _ _ _ _ _ | _ (_) | |
: .~.'~'.~. : | / _` (_-< '_ \ '_ \/ -_) '_| '_| || | | _/ | |
This gist contains several queries that can be used against the data published by the project "CEDAR"