Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasetdescription MIME type matters #662

Open
coret opened this issue Jan 16, 2023 · 0 comments
Open

Datasetdescription MIME type matters #662

coret opened this issue Jan 16, 2023 · 0 comments

Comments

@coret
Copy link
Contributor

coret commented Jan 16, 2023

When requesting the URL https://research.annefrank.org/media/Beschrijving_uitgebreid_met_RDF.jsonld the server responds (among other) with the header Content-Type: application/octet-stream. The Dataset Register cannot find any datasets as (I assume) Comunica doesn't recognize the content. When providing the same file on a webserver configured to provide Content-Type: application/ld+json for jsonld files, the Dataset can be validated.

You could argue that the .jsonld part of the URL provides information which is more detailed than the more generic application/octet-stream so why not use that signal? Could the our code assist in the recognition part, or is this purely Comunica which makes the determination?

Our API responds in these cases with 406 | The URL can be resolved but it contains no datasets.. A message stating the URL doesn't contain RDF would have made more sense to the user. Can our code make that differentiation?

The Dataset requirements do not make the Content-Type requirement explicit (there's only a comment in regard to the MIME type of distributions). If the Dataset Register / Comunica relies on the Content-Type solely to determine the RDF type, we should make it more explicit. Additionally, we might add a question to the FAQ (what datasetdescription content-types are recognized? link to https://www.iana.org/assignments/media-types/media-types.xhtml).

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

No branches or pull requests

1 participant