Forked from JervenBolleman/gist:60cc9dd13614c05fe9743519cd6ef5aa
Created
December 4, 2018 11:15
-
-
Save egonw/13cc98fbf14bbf6588a4b7cfe5fb88fb to your computer and use it in GitHub Desktop.
Let virtuoso discover all sparql endpoints in wikidata and use it to improve federations capabilities
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
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