cubiql
cubiql copied to clipboard
Allow access to arbitrary slices without using dataset specific schemas
Use case is to provide a more abstract schema that allows querying for slices without requiring specific dataset_
schema knowledge.
An example query might be:
{
datasets(uri: "http://dataset") {
uri
label
observations(order_uri: {uri: "http://date-dim", direction: ASC}, locked_dims: {dim_uri: "http://dim/", dim_val: "http://dim-val"}) {
page {
result {
uri
label
measures {
uri
label
measure_value
}
components {
uri
label
values {
uri
label
}
}
}
}
}
}
}
Extracted this query example from discussion with @mohadelrezk in #84.
It would be good if @zeginis and @mohadelrezk could look at this too and see if there are any other options we'd need to support.
what is 'locked_dims'? I was thinking of a simpler query and results as in here: https://github.com/OpenGovIntelligence/json-qb-api-implementation#get-slice
@mohadelrezk locked_dims refers to the fixed values of dimensions e.g. year=2010 and gender=male At the old API this was refered as fixed dimensions.
At the simple query you are referring there is no need to define locked dimensions since you are requesting all the observations.