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

Content negotiation for RO-Crate identifier #297

Open
dgarijo opened this issue May 9, 2024 · 3 comments
Open

Content negotiation for RO-Crate identifier #297

dgarijo opened this issue May 9, 2024 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@dgarijo
Copy link
Contributor

dgarijo commented May 9, 2024

Describe the bug
Doing:

curl -sH "Accept:application/ld+json" -L https://w3id.org/ro/crate/1.1 

Returns HTML instead of the contents of https://www.researchobject.org/ro-crate/1.1/ro-crate-metadata.json , which should be the right response in this case.

Also, I think that

curl -sH "Accept:application/ld+json" -L https://w3id.org/ro/crate 

Should resolve to the latest official version of the RO-Crate spec

Suggested fix
Fix the content negotiation in w3id.org.

@dgarijo dgarijo added the bug Something isn't working label May 9, 2024
@dgarijo
Copy link
Contributor Author

dgarijo commented May 9, 2024

Maybe related to #228

@dgarijo
Copy link
Contributor Author

dgarijo commented May 9, 2024

@stain says that https://github.com/perma-id/w3id.org/blob/master/ro/crate/.htaccess does not have content negotiation enabled

@stain stain added this to the RO-Crate 1.2 milestone May 23, 2024
@stain
Copy link
Contributor

stain commented May 23, 2024

Now that we have Profile Crates in 1.2-DRAFT and also a historical 1.1 RO-Crate we should add this to the w3id so we comply with our own #296 on retrieval!

Note that 1.0 does not have an RO-Crate representation of itself and neither do we have a https://www.researchobject.org/ro-crate/ro-crate-metadata.json so this would for now only be on the versioned URIs. Not sure how to do the latest one for https://w3id.org/ro/crate -- by symlink perhaps? For 1.2-DRAFT (1.2 when released) it's a Detached Crate so it does not matter where it's served from.

@dgarijo dgarijo changed the title Content negotiation for RO-Crate identifiera Content negotiation for RO-Crate identifier May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
RO-Crate specifications
  
Awaiting triage
Development

No branches or pull requests

2 participants