-
Notifications
You must be signed in to change notification settings - Fork 42
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
Other tools have problems with JSON-LD output files #214
Comments
Same problem with https. But the content type of
|
@fbartusch thanks for identifying the origin of the problem @trungdong is this something you could fix on openprovenance.org? |
I stumbled upon another problem and hope it's ok to add it here, as it's the same topic: ProvToolbox currently produces this JSON-LD where the
When I convert this into Turtle format (again with Apache Jena riot tool), the
The example in the JSON-LD Playground: click When I add the
Converting yields:
The example in the JSON-LD Playground: click |
Missclick, sorry. I didn't want to close it with the last comment ... |
I think that's because the context has not been loaded by the tool properly. You will see that
|
I now realise that this was an old version of the prov-jsonld context. The definition of prov-jsonld can be found at https://openprovenance.org/prov-jsonld/. The prov-jsonld context is accessible from https://openprovenance.org/prov-jsonld/context.json and is served with the The development branch has got a fix, and it will be included in the next release of ProvToolbox. If you update the context by hand, does it fix the issue you are having with your tool? |
I found a solution now. I took your |
I have fixed the MIME type.
|
I would advise against changing the canonical context's location to We can instead update the file at |
I would suggest keeping the following as a json content
https://openprovenance.org/prov-jsonld/context.json
and creating the following with the appropriate media type
https://openprovenance.org/prov-jsonld/context.jsonld
given that the spec is at
https://openprovenance.org/prov-jsonld/<https://openprovenance.org/prov-jsonld/context.jsonld>
…--
Professor Luc Moreau, Head of Department
Department of Informatics, King’s College London
Strand Campus, Bush House, 30 Aldwych, London, WC2B 4BG.
Tel: +44 207 848 6808, web: https://nms.kcl.ac.uk/luc.moreau/
From: Dong Huynh ***@***.***>
Date: Wednesday, 3 January 2024 at 13:02
To: lucmoreau/ProvToolbox ***@***.***>
Cc: Luc Moreau ***@***.***>, Comment ***@***.***>
Subject: Re: [lucmoreau/ProvToolbox] Other tools have problems with JSON-LD output files (Issue #214)
The prov-jsonld context is accessible from https://openprovenance.org/prov-jsonld/context.json and is served with the application/json type.
The development branch has got a fix, and it will be included in the next release of ProvToolbox.
I would advise against changing the canonical context's location to https://openprovenance.org/prov-jsonld/context.json since we will not be able to serve it with the correct MIME type, i.e. application/ld+json (without also serving other JSON files with this MIME type).
We can instead update the file at http://openprovenance.org/prov.jsonld with the latest, accurate content.
—
Reply to this email directly, view it on GitHub<#214 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABCXQ5B2CGBZ5VEUPGSIFDYMVJEZAVCNFSM6AAAAABAZAWWW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGMZTQMRQGU>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I've made a symlink at
|
Hi,
I'm trying to use JSON-LD output files with Apache Jena tools like riot (e.g. converting .jsonld to .ttl).
But riot and also JSON-LD Playground have problems with ProvToolbox' output.
Here is a minimal example:
I'm using
riot complains:
Here is the problem inside the JSON-LD playground
I found that the external context (I hope this term is correct, I'm not experienced with the format)
http://openprovenance.org/prov.jsonld
causes the problem. When removed both tools don't complain:working JSON-LD playground
If the external context is replaced with
https://json-ld.org/contexts/person.jsonld
, it also works.The replacement doesn't makes sense, it's just an example that the linked JSON-LD file
http://openprovenance.org/prov.jsonld
somehow breaks other tools.Kind Regards,
Felix
The text was updated successfully, but these errors were encountered: