Skip to content

Instantly share code, notes, and snippets.

@Abbe98
Last active November 27, 2018 13:59
Show Gist options
  • Save Abbe98/0586bf77476fb3c06b8fb98e3baca6a6 to your computer and use it in GitHub Desktop.
Save Abbe98/0586bf77476fb3c06b8fb98e3baca6a6 to your computer and use it in GitHub Desktop.
Europeana SparQL stuff
PREFIX edm: <http://www.europeana.eu/schemas/edm/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?ku ('sameAs' AS ?relation) ?uri WHERE {
?item dc:identifier ?ku .
filter contains(?ku, 'kulturarvsdata.se') .
BIND(REPLACE(STR(?item), "proxy/provider", "item") AS ?uri)
}
LIMIT 10
PREFIX edm: <http://www.europeana.eu/schemas/edm/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT (COUNT(?item) as ?count) WHERE {
?item dc:identifier ?ku .
filter contains(?ku, 'kulturarvsdata.se') .
}
PREFIX edm: <http://www.europeana.eu/schemas/edm/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT (COUNT(?item) as ?count) WHERE {
?item edm:provider 'Swedish Open Cultural Heritage | K-samsök' .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment