Closed stratosn closed 3 years ago
A connected question is the expected behaviour when querying CategorySchemes as references with detail=referencepartial
.
E.g. Let's assume that a dataflow is categorised in a second-level category (which has also itself child categories). When querying http://sdmx-ws-root/dataflow/[agencyID]/[dataflowID]/[version]?references=all&detail=referencepartial, then the CategoryScheme in the references contains:
In #14 the support for getting Categorisations according to specific Categories (i.e. TargetCategories) was implemented. This is achieved via the Item Query #20 combined with the query string parameter
reference=parents
.While requesting a specific Category requires also to specify the full path of its container Categories, it is not clear what to return when a Category, apart from being contained in another Category, contains also one or more Categories.
For example, assume the following request to the Global Registry, for the Category
SECTORAL_STAT
, which is contained within CategoryECO_STAT
: https://registry.sdmx.org/ws/public/sdmxapi/rest/categoryscheme/SDMX/STAT_SUBJECT_MATTER/1.0/ECO_STAT.SECTORAL_STAT While all Categories untilSECTORAL_STAT
shall be returned, any Categories under the latter are not, i.e.:NOTE: the Category
ECO_STAT.SECTORAL_STAT
contains six (6) Categories.The question is: should it return the contained Categories, and consequently any Categories contained within the latter?
Moreover, another question that arises is how to apply reference resolution on the result partial Category Scheme, since it will contain all Categories required to return the requested Category, but also may include all Categories that the latter contains.