Engineering-Research-and-Development / dsp-true-connector

0 stars 1 forks source link

EDC Compatibility - Serializer and @context handling #81

Open IgorBalog-Eng opened 1 month ago

IgorBalog-Eng commented 1 month ago

EDC sends CatalogRequest in following format

{
    "@type": "dspace:CatalogRequestMessage",
    "dspace:filter": {
        "@type": "QuerySpec",
        "limit": 50,
        "offset": 0,
        "sortOrder": "ASC",
        "filterExpression": []
    },
    "@context": {
        "@vocab": "https://w3id.org/edc/v0.0.1/ns/",
        "edc": "https://w3id.org/edc/v0.0.1/ns/",
        "dcat": "http://www.w3.org/ns/dcat#",
        "dct": "http://purl.org/dc/terms/",
        "odrl": "http://www.w3.org/ns/odrl/2/",
        "dspace": "https://w3id.org/dspace/v0.8/"
    }
}

and it fails on DSP TC side with context field check.

This needs to be changed so that it can parse such field (add optional check for namespaces) Changed context field should be sent back in protocol serialization. Update junit tests and possibly integration (if required)

Once logic is updated for catalog, check possibility to propagate such logic into other modules.