semantique.QueryRecipe#
- class semantique.QueryRecipe(results=None)[source]#
Dict-like container to store instructions of a query recipe.
- Parameters:
results (
dict
ofArrayProxy
) – Dictionary containing result names as keys and result instructions as values. IfNone
, an empty recipe is constructed.- Returns:
dict
ofArrayProxy
– The query recipe as a dictionary containing result names as keys and result instructions as values.
Examples
>>> import semantique as sq >>> recipe = sq.QueryRecipe() >>> recipe["map"] = sq.entity("water").reduce("time", "count") >>> recipe["series"] = sq.entity("water").reduce("space", "count")
Methods
__init__
([results])execute
(datacube, mapping, space, time[, ...])Execute a query recipe.