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
use_debug false | |
use_bpm 130 | |
# Our mixer! | |
master = (ramp *range(0, 1, 0.01)) | |
kick_volume = 1 | |
bass_volume = 1 | |
revbass_volume = 1 | |
snare_volume = 0.5 | |
hats_volume = 0.5 |
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
DELETE { | |
?bnode ?outP ?outO . | |
?inS ?inP ?bnode . | |
} | |
INSERT { | |
?iri ?outP ?outO . | |
?inS ?inP ?iri . | |
} | |
WHERE { | |
{ |
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
use_debug false | |
instruments = 1 | |
drums = 1 | |
live_loop :clock do | |
sleep 1 | |
end | |
noise_cutoffs = range(100, 120, 0.1).reflect |
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
# Solution from: <http://answers.semanticweb.com/questions/19162/split-and-trim-strings-in-sparql/27544> | |
PREFIX schema: <http://schema.org/> | |
DELETE { | |
?s schema:url ?urls . | |
} | |
INSERT { | |
?s schema:url ?url . | |
} |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import requests | |
from requests.auth import HTTPDigestAuth | |
def crud(graphStoreEndpoint, verb, graph, payload, auth): | |
function = { | |
"POST" : requests.post, | |
"PUT" : requests.put, |
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
### Sonic Pi | |
### The Live Coding Music Synth for Everyone | |
### https://sonic-pi.net | |
use_debug false | |
use_bpm 80 | |
drum_mix = 1 | |
bass_mix = 1 | |
synth_mix = 1 |
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 tribute to | |
# | |
# Apollo 440: Glam | |
# | |
# Dedicated to my Dad | |
# | |
# (with whom I bought this on a CD back in the 1990s) | |
use_debug false | |
use_bpm 130 |
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
CREATE PROCEDURE dump_one_graph_nt | |
( IN srcgraph VARCHAR | |
, IN out_file VARCHAR | |
, IN file_length_limit INTEGER := 1000000000 | |
) | |
{ | |
DECLARE file_name VARCHAR | |
; DECLARE env | |
, ses ANY | |
; DECLARE ses_len |
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
# SPARQL 1.1 implementation of concise bounded description (<https://www.w3.org/Submission/CBD>). | |
PREFIX : <http://example.com/> | |
PREFIX non: <http://non/> | |
CONSTRUCT { | |
:resource ?p1 ?r1 . | |
?r2 ?p2 ?r3 . | |
} | |
WHERE { |
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
# Run at the German DBpedia SPARQL endpoint: http://de.dbpedia.org/sparql | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
SELECT ?dbpedia | |
WHERE { | |
BIND (<http://www.wikidata.org/entity/Q1418856> AS ?wikidata) | |
BIND (strafter(str(?wikidata), "http://www.wikidata.org/entity/") AS ?qid) | |
BIND (iri(concat("http://wikidata.dbpedia.org/resource/", ?qid)) AS ?indirect_wikidata) | |
?dbpedia owl:sameAs ?indirect_wikidata . |
NewerOlder