-
Notifications
You must be signed in to change notification settings - Fork 22
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
Wrong media type used for JSON(-LD) #91
Comments
I'll take a look. If this is a problem, I've contributed back the badness to lodestar upstream at EBI as well. |
Let me know if you need any testing help. I'm mostly working with https://github.com/digitalbazaar/jsonld.js and https://github.com/RubenVerborgh/N3.js for dealing with stuff in the browser and node (fwiw). Appreciate the help/time! |
- Addresses EBISPOT#25 upstream and HHS/meshrdf#91 downstream
@BigBlueHat, I've issued a pull request to EBISPOT/lodestar. I'll include the fix in our downstream builds if it is accepted. |
@BigBlueHat, this has been merged upstream, and we will install it during our next release. This is tentatively scheduled for the end of June. |
Note - this will also affect auto conversion. That is, now if you send |
@BigBlueHat , please test - this should be done in production now. It was accepted upstream awhile ago, but I'm not in control of when it shows up at EBISPOT. |
@BigBlueHat , I need to close this - we are moving away from Github Issues, and will be redirecting to our support site for support. |
Sad things are moving away from GitHub. 😢 What will happen to the open source code? Is it also getting a new home (hopefully not behind closed doors)? Thanks for letting me know regardless! |
@BigBlueHat, no we are preserving the use of github, we are just moving the issues. We are preserving the open source code. |
Phew! Thanks @danizen 😄 |
The docs (and the responses themselves) use
application/rdf+json
for returning@graph
-based JSON-LD documents. However, the correct media type isapplicatoin/ld+json
for that format.For example:
returns this content type:
As does the
.json
variant.The
application/rdf+json
media type is used for a very different (and deprecated) JSON-based RDF format (known as "RDF 1.1 JSON Alternate Serialization (RDF/JSON)"):https://www.w3.org/TR/rdf-json/#sec-examples
JSON-LD replaced that format:
Please consider returning the correct
application/ld+json
media type for the.json-ld
,.json
, and content-negotiated (Accept: application/ld+json
) requests (which, btw, currently returns n-triples).Thanks for considering this!
🎩
The text was updated successfully, but these errors were encountered: