International-Data-Spaces-Association / ids-specification

The Dataspace Protocol is a set of specifications designed to facilitate interoperable data sharing between entities governed by usage control and based on Web technologies. These specifications define the schemas and protocols required for entities to publish data, negotiate Agreements, and access data in a data space
https://docs.internationaldataspaces.org/dataspace-protocol/
Apache License 2.0
26 stars 14 forks source link

Context File is returned with the Mimetype "plain/text" #171

Closed sebbader-sap closed 7 months ago

sebbader-sap commented 8 months ago

... however, "application/json" or "application/ld+json" is required.

sebbader-sap commented 8 months ago

@mkollenstart I just tested parsing the JSON-LD messages with Jena, which worked out-of-the-box. Looks like at least Jena doesn't give much about the mime type when resolving the context.

mkollenstart commented 8 months ago

Since Gtihub Pages actions only support pushing a single artifact, the only viable solution is to include the releases into the repository. I've created a fork with an example of how this could work at https://github.com/mkollenstart/ids-specification where I've created a releases folder and a Gtihub Action for creating the Github pages. The JSON-LD context can then be accessed via https://mkollenstart.github.io/ids-specification/0.8/schema/context.json

The repository settings should then be updated to use Github Actions as source for Github Pages (In Settings > Code and automation > Pages > Source).

The question is how to serve the working version (i.e. the non-released version) of the context, should that be in a folder within releases or in the current directory structure? For the latter the github action should be updated to include those files in the Github Pages.

Note: The next two weeks I'm out of office, so feel free to merge these changes without me.

sebbader-sap commented 8 months ago

I also need the following three JSON files being exposed the same way:

ssteinbuss commented 7 months ago

We wait for @mkollenstart