-
Notifications
You must be signed in to change notification settings - Fork 9
Sparse graph queries
Gerard edited this page Mar 12, 2018
·
12 revisions
A sparse graph query is a query with which an attribute can be set in the sparse graph. This is usually a combination of an input from ETLocal and a serie of queryable attributes.
Allowed GQL statements:
-
DATASET_INPUT(key)(Reads an input from the ETLocal front-end, unless the key is a direct sparse graph key) -
EB(use, carrier)(Reads from the parent's dataset energy balance) -
AREA(key)(Reads from the parent's dataset area file) -
SHARE(key, attribute)(Reads from the parent's dataset share values) -
EFFICIENCY(key, direction, carrier)(Reads from the parent's dataset efficiencies) -
CENTRAL_PRODUCTION(key, attr = :demand)(Reads from the parent's dataset central production csv) -
PRIMARY_PRODUCTION(key, attr)(Reads from the parent's dataset primary production) -
TIME_CURVE(key, attr)(Reads from the parent's dataset time curve) -
DEMAND(key, attr)(Reads a demand from the parent's dataset demands)
All these attributes will be queried from the parent attributes.
Example:
- graph_key = households_final_demand_electricity
- graph_attribute = demand
- query = DATASET_INPUT(etlocal_test_key) * 5