Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egonw/13cc98fbf14bbf6588a4b7cfe5fb88fb to your computer and use it in GitHub Desktop.
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
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