Skip to content

fix: add servesDataset to the DataService context - #286

Open
SimonStier wants to merge 1 commit into
eclipse-dataspace-protocol-base:mainfrom
SimonStier:fix/serves-dataset-context
Open

SimonStier wants to merge 1 commit into
eclipse-dataspace-protocol-base:mainfrom
SimonStier:fix/serves-dataset-context

Conversation

@SimonStier

Copy link
Copy Markdown

What this PR changes/adds

Adds servesDataset to the DataService scoped context in context/dspace.jsonld:

"servesDataset": {
  "@id": "dcat:servesDataset",
  "@container": "@set"
}

The term was absent, so a schema-valid DataService populating it lost the whole subtree on
expansion and did not compact back to itself. dataset-schema.json declares the property as
array[ Dataset ] and the published type table lists it.

  • @container: "@set" matches how service, catalog, dataset and distribution are declared,
    and keeps a single-item array from compacting to a bare object, which would fail the schema.
  • No @type: "@id", since the items are Dataset node objects and link without coercion.

Additive: every message that validates today continues to validate and compacts unchanged.

Further notes

No shipped example populates servesDataset, so no example or test fixture changes here. Verified
with a JSON-LD processor against the patched context: the property expands to dcat:servesDataset
and compacts back identically, preserving the array.

Linked Issue(s)

Closes #277

- the term was absent, so a schema-valid DataService carrying it lost
  the whole subtree on expansion and did not compact back to itself
- declared with @container @set, matching service, catalog, dataset and
  distribution, so a single-item array does not compact to a bare object
- no @type @id, since the items are Dataset node objects

Signed-off-by: Simon Stier <simon.stier@isc.fraunhofer.de>
@SimonStier SimonStier closed this Nov 6, 2026
@SimonStier SimonStier reopened this Nov 6, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataService.servesDataset is not in the JSON-LD context, so it produces no triples

1 participant