Skip to content

Instantly share code, notes, and snippets.

@albertmeronyo
Created April 27, 2015 09:44
Show Gist options
  • Save albertmeronyo/01f0f79f9bff52cecfc7 to your computer and use it in GitHub Desktop.
Save albertmeronyo/01f0f79f9bff52cecfc7 to your computer and use it in GitHub Desktop.
SCRY queries
# Standard deviation of matched observations
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX cedar: <http://bit.ly/cedar#>
PREFIX scry: <http://www.scry.com/>
PREFIX math: <http://www.scry.com/math/>
PREFIX input: <http://www.scry.com/input?>
SELECT *
WHERE {
{ SELECT (GROUP_CONCAT(?pop;separator=",") AS ?pops) FROM <urn:graph:cedar-mini:release> WHERE {
?obs a qb:Observation .
?obs cedar:population ?pop .
} LIMIT 10 }
SERVICE <http://145.108.172.225:5000/scry/> {
math:sd scry:input ?pops .
math:sd scry:output ?sd .
math:sd scry:description ?desc .
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment