Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save northernjamie/54b7346a8b6ff4ad364af5d7999e9193 to your computer and use it in GitHub Desktop.
Save northernjamie/54b7346a8b6ff4ad364af5d7999e9193 to your computer and use it in GitHub Desktop.
Count observations by dataset in ONS GSS Alpha PMD
PREFIX qb: <http://purl.org/linked-data/cube#>
SELECT (count (distinct ?s) as ?counts) ?ds
WHERE {
?s a <http://purl.org/linked-data/cube#Observation> ;
qb:dataSet ?ds .
}
GROUP BY ?ds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment