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 python3 | |
from argparse import ArgumentParser, ArgumentTypeError | |
from datetime import date, datetime, timedelta | |
import json | |
import re | |
from string import Template | |
import urllib.parse | |
import urllib.request | |
import webbrowser |
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 bash | |
# | |
# A demo script that retrieves counts of class instances from LOD Laundromat datasets | |
# Usage: | |
# Reads a list of newline separated class IRIs either from its first argument or standard input. | |
# $ count_class_instances_from_lod_laundromat.sh < classes.txt | |
# | |
# Caveat: | |
# Since we use an old-school shell script, class IRIs that contain special characters, | |
# like %-encoding or commas will break the CSV output. |
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
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
############### | |
# Create salt # | |
############### | |
INSERT { | |
GRAPH :mappings { |
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
(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 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://localhost/> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
CONSTRUCT { | |
?s ?p ?o . | |
} | |
WHERE { | |
# Generate 0 to 10 triples | |
VALUES ?n { 0 1 2 3 4 5 6 7 8 9 10 } |
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
#!/bin/bash | |
# | |
# Stažení dumpů CEDRu | |
set -e | |
# URL SPARQL endpointu CEDRu | |
ENDPOINT="http://cedropendata.mfcr.cz/c3lod/cedr/sparql" | |
# SPARQL dotaz pro získání URL dumpů |
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
PREFIX : <http://example.com/> | |
DELETE { | |
?r1 ?outP ?outO . | |
?inS ?inP ?r1 . | |
} | |
INSERT { | |
?inS ?inP ?r2 . | |
} | |
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
PREFIX : <http://example.com/> | |
DELETE { | |
?r ?outP ?outO . | |
?inS ?inP ?r . | |
} | |
INSERT { | |
?sampleR ?outP ?outO . | |
?inS ?inP ?sampleR . | |
} |
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
PREFIX : <http://example.com/> | |
DELETE { | |
?r ?outP ?outO . | |
?inS ?inP ?r . | |
} | |
WHERE { | |
{ | |
SELECT (SAMPLE(?r) AS ?sampleR) ?hash | |
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
@prefix : <http://example.com/> . | |
:r1 a :C ; | |
:name "a" . | |
:r2 a :C ; | |
:name "a" . | |
:r3 a :C ; | |
:name "a" ; |