Skip to content

Instantly share code, notes, and snippets.

@JervenBolleman
Created December 4, 2018 11:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JervenBolleman/60cc9dd13614c05fe9743519cd6ef5aa to your computer and use it in GitHub Desktop.
Save JervenBolleman/60cc9dd13614c05fe9743519cd6ef5aa to your computer and use it in GitHub Desktop.
Let virtuoso discover all sparql endpoints in wikidata and use it to improve federations capabilities
for iri in $(wget -q --header "accept:text/csv" "https://query.wikidata.org/sparql?query=SELECT DISTINCT ?iri WHERE { [] wdt:P5305 ?iri }" -O -|grep -oP '^http[\S]+')
do
echo "isql $port $user $password exec='LOAD SERVICE <$iri> DATA;'";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment