Open stevage opened 8 years ago
@stevage thanks for the feedback! These are great questions and will help us come up with the next iteration. We're actually rethinking how aggregates.json would work. To your questions:
file
refers to the resulting output file for the computed aggregate CSV.format
right now is useless as we're currently only generating CSVs, but that may change in the future if we decide to generate, say, JSON aggregatestable
is an implementation detail from when we were roughly experimenting with raw SQL, and will probably go away in favor of more structured queries (e.g. Sequelize-style queries)admin
(example administrative category), executed
(example stage in budget cycle), etc. are indeed column names in an example source CSV. They are entirely dependent on the type of data you have and are indeed described by the resources/schema/fields/name
I hope this makes sense :).
Please don't take this as criticism :) But these are answers I was trying to find in the brief README that could be made explicit:
"file"
: the name of the CSV file (minus extension), or the value of theresources/name
element of the datapackage.json? (Or is it theresources/path
?)format
need to be specified, if it's already in the datapackage.json?table
, in the sample SQL query? Is it always the wordtable
, or what does it refer to exactly?admin
,executed
) refer to exactly -resources/schema/fields/name
?[byAdmin: { ... }, ... ]
perhaps?"like this"
,[like this]
... ?