Skip to content

Instantly share code, notes, and snippets.

@csarven
Created November 26, 2013 15:24
Show Gist options
  • Save csarven/7660302 to your computer and use it in GitHub Desktop.
Save csarven/7660302 to your computer and use it in GitHub Desktop.
SELECT ?datasetTitle ?source
WHERE {
{SERVICE <http://worldbank.270a.info/sparql> {
SELECT ?datasetTitle ?source
WHERE {
?dataset a qb:DataSet ; dcterms:title ?datasetTitle
BIND("1" AS ?source)
}
ORDER BY LCASE(?datasetTitle)
}}
UNION
{SERVICE <http://transparency.270a.info/sparql> {
SELECT ?datasetTitle ?source
WHERE {
?dataset a qb:DataSet ; rdfs:label ?datasetTitle
BIND("2" AS ?source)
}
ORDER BY LCASE(?datasetTitle)
}}
UNION
{SERVICE <http://oecd.270a.info/sparql> {
SELECT ?datasetTitle ?source
WHERE {
?dataset a qb:DataSet ; dcterms:title ?datasetTitle
BIND("3" AS ?source)
}
ORDER BY LCASE(?datasetTitle)
}}
UNION
{SERVICE <http://fao.270a.info/sparql> {
SELECT ?datasetTitle ?source
WHERE {
?dataset a qb:DataSet ; dcterms:title ?datasetTitle
BIND("4" AS ?source)
}
ORDER BY LCASE(?datasetTitle)
}}
UNION
{SERVICE <http://ecb.270a.info/sparql> {
SELECT ?datasetTitle ?source
WHERE {
?dataset a qb:DataSet ; dcterms:title ?datasetTitle
BIND("5" AS ?source)
}
ORDER BY LCASE(?datasetTitle)
}}
UNION
{SERVICE <http://imf.270a.info/sparql> {
SELECT ?datasetTitle ?source
WHERE {
?dataset a qb:DataSet ; dcterms:title ?datasetTitle
BIND("6" AS ?source)
}
ORDER BY LCASE(?datasetTitle)
}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment