sdmx-twg / sdmx-json

This repository is used for maintaining the SDMX-JSON message specifications.
54 stars 20 forks source link

SDMX 3.0: implement "feature 013 Reorganising constraints" for SDMX-JSON messages #99

Closed dosse closed 2 years ago

dosse commented 3 years ago

https://metadatatechnology.com/sdmx3/designs/013/approved/TF-2%20Reorganising%20Constraints%20v0.1.0.docx

dosse commented 3 years ago

In order to support the new requirement, it is proposed to:

structure message changes:

e.g. https://service-root/availability/ECB,EXR,1.0/A.EGP+RON..?startperiod=2010

    "contentConstraints": [{
        "id": "9d6e73af-93e7-44e8-a6e9-b28380f05dc4",
        "agencyID": "ECB",
        "type": "Actual",
        "constraintAttachment": {
            "dataflows": ["urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=ECB:EXR(1.0)"],
            "filter": "A.EGP+RON..?startperiod=2010"
        },
        "cubeRegions": [{
            "isIncluded": true,
            "keyValues": [
                {
                    "id": "COU",
                    "values": ["AUS","AUT"]
                },
                {
                    "id": "VAR",
                    "values": ["INDEX_2000"]
                },
                {
                    "id": "TIME_PERIOD",
                    "timeRange": {
                        "startPeriod": {
                            "period": "1990-01-01T00:00:00Z",
                            "isInclusive": true
                        },
                        "endPeriod": {
                            "period": "2017-12-31T23:59:59Z",
                            "isInclusive": true
                        }
                    }
                }
            ]
        }]
    }]

--> Implemented as translation from xml structure schemas by J

data message changes: no impact

dosse commented 2 years ago

Released