Closed danfowler closed 8 years ago
I've only read the FDP spec superficially, but I sense that a lot of its features resemble an OLAP schema definition language. Maybe you already have, but I suggest taking a look at Mondrian's 4 schema definition language for inspiration.
If it helps, I can share some of the Mondrian schemas that I'm using for budget data in Presupuesto Abierto.
Adapted with slight modification from this comment by @pwalsh: https://github.com/openspending/fiscal-data-package/issues/48#issuecomment-158681781
fields
toattributes
suggested here: https://github.com/openspending/fiscal-data-package/issues/93Reasoning for this change:
If
attributes
is length == 1, we have a flat dimension object. ifattributes
is length > 1, we have an indexed hierarchy of dimension objects.