This file contains hidden or 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
| @prefix : <http://example.com/> . | |
| @prefix dbo: <http://dbpedia.org/ontology/> . | |
| @prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| @prefix sp: <http://spinrdf.org/sp#> . | |
| _:person sp:varName "person" . | |
| _:name sp:varName "_name" . | |
| _:birthDate sp:varName "_birthDate" . |
This file contains hidden or 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
| (prefix ((dbo: <http://dbpedia.org/ontology/>) | |
| (foaf: <http://xmlns.com/foaf/0.1/>)) | |
| (project (?person ?name ?birthDate ?deathDate) | |
| (extend ((?deathDate ?.2)) | |
| (extend ((?birthDate ?.1)) | |
| (extend ((?name ?.0)) | |
| (group (?person) ((?.0 (sample ?_name)) (?.1 (sample ?_birthDate)) (?.2 (sample ?_deathDate))) | |
| (leftjoin | |
| (join | |
| (slice 0 10000 |
This file contains hidden or 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
| PREFIX dbo: <http://dbpedia.org/ontology/> | |
| PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
| SELECT ?person | |
| (SAMPLE(?_name) AS ?name) | |
| (SAMPLE(?_birthDate) AS ?birthDate) | |
| (SAMPLE(?_deathDate) AS ?deathDate) | |
| WHERE { | |
| { | |
| SELECT ?person |
This file contains hidden or 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
| PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
| SELECT ?person | |
| {{#properties}} | |
| (SAMPLE(?_{{varname}}) AS ?{{varname}}) | |
| {{/properties}} | |
| WHERE { | |
| { | |
| SELECT ?person | |
| WHERE { |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # Compute average response time for given SPARQL query and endpoint | |
| # | |
| # Note: For proper benchmarking use SPARQL Query Benchmarker instead. | |
| # <https://sourceforge.net/p/sparql-query-bm/wiki/Introduction/> | |
| set -e | |
| die () { |
This file contains hidden or 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 hidden or 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
| PREFIX bd: <http://www.bigdata.com/rdf#> | |
| PREFIX p: <http://www.wikidata.org/prop/> | |
| PREFIX q: <http://www.wikidata.org/prop/qualifier/> | |
| PREFIX v: <http://www.wikidata.org/prop/statement/> | |
| PREFIX wd: <http://www.wikidata.org/entity/> | |
| PREFIX wikibase: <http://wikiba.se/ontology#> | |
| SELECT DISTINCT ?countryLabel ?primeMinisterLabel | |
| WHERE { | |
| ?country p:P31 ?countryStatement . |
This file contains hidden or 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 hidden or 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
| (ns soap-test.core-test | |
| (:require [clojure.test :refer :all] | |
| [clojure.test.check.generators :as gen] | |
| [clojure.test.check.properties :as prop] | |
| [clojure.test.check.clojure-test :refer [defspec]] | |
| [clj-soap.core :as soap :refer [obj->soap-str]])) | |
| ; Boilerplace method required by the clj-soap library | |
| (defmethod obj->soap-str :currency [obj argtype] (str obj)) |
This file contains hidden or 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
| var APP = { | |
| // Definition of the Křovák projection | |
| // EPSG:102067 instead of EPSG:5514 needs to be used with IPR's WMS. | |
| crs: new L.Proj.CRS("EPSG:102067", | |
| "+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 " | |
| + "+alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 " | |
| + "+ellps=bessel +towgs84=589,76,480,0,0,0,0 +units=m " | |
| + "+no_defs", | |
| {origin: [-951499.37, -930499.37], | |
| // The difficult part |