Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
pwalsh opened this issue Sep 7, 2017 · 5 comments
Open
1 task

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

pwalsh opened this issue Sep 7, 2017 · 5 comments

Comments

@pwalsh
Copy link
Member

pwalsh commented Sep 7, 2017

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

  • @akariv to share draft implementation / example / wording
@pwalsh
Copy link
Member Author

pwalsh commented Sep 7, 2017

@akariv also related, this discussion on supporting non-monetary measures: openspending/fiscal-data-package#138

@akariv
Copy link
Member

akariv commented Sep 28, 2017

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

  • Certain fiscal system have more than just the two basic directions
  • Certain files will have both income and expenditure rows.

The proposed solution would be to:

  • For files with just one direction for all rows:
    • Do nothing
    • Create a constant virtual column with a direction column-type and the direction name as the value
  • For files with multiple directions for rows:
    • Map the column that states the direction to the direction column-type

@akariv
Copy link
Member

akariv commented Sep 28, 2017

BTW, same goes for phase and currency.

@pwalsh
Copy link
Member Author

pwalsh commented Nov 29, 2017

@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
Copy link
Member

akariv commented Dec 13, 2017

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.

@roll roll unassigned akariv Jan 3, 2024
@roll roll transferred this issue from frictionlessdata/datapackage Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants