frictionlessdata / datapackage-fiscal

Fiscal Data Package is a lightweight and user-oriented format for publishing and consuming fiscal data. Fiscal data packages are made of simple and universal components. They can be produced from ordinary spreadsheet software and used in any environment.
https://fiscal.datapackage.org/
The Unlicense
2 stars 0 forks source link

Customisable options for direction ("operation character") #2

Open pwalsh opened 7 years ago

pwalsh commented 7 years ago

Description

Fiscal Data Package v0.3 has a direction concept. There are two fixed directions of "expenditure" and "revenue". We have clear examples of the limitations of this from Australian budgets, from Israeli budgets, and US budgets.

Additionally, the idea of direction is strongly tied to "expenditure" and "revenue". The OpenBudgets.eu Data Model calls this "Operation Character", which I think is preferable.

@akariv has a solution for Operation Character as a customisable sequence for Fiscal Data Package v1.0.0. We'll share a draft here.

See prior discussion here

Tasks

pwalsh commented 7 years ago

@akariv also related, this discussion on supporting non-monetary measures: https://github.com/openspending/fiscal-data-package/issues/138

akariv commented 7 years ago

I think we should remove the strict set of options from the spec, especially as properties of measures.

The proposed solution would be to:

akariv commented 7 years ago

BTW, same goes for phase and currency.

pwalsh commented 6 years ago

@akariv

Can you:

  1. Add here a brief description, and a sample snippet, of the new syntax/handling being proposed for v1.
  2. Additionally, link to the current text of the v1 spec in whole.
akariv commented 6 years ago

This is the working draft of the v1 FDP spec: https://hackmd.io/BwNgpgrCDGDsBMBaAhtALARkWsPEE5posR8RxgAzffWfDIA=?view

This new spec removes the strict rules on 'direction'. Direction is now a ColumnType, meaning it could be used to describe an existing column of the data, or as a 'constant value' column, adding this information as meta-data. It could also be omitted completely by the users, in cases it's not applicable. There are no restrictions on the values of direction, and that's left for the users of the data to interpret based on local context.