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

Error 404 for getting Terms from EFO #42

Open
quirinmanz opened this issue Feb 15, 2024 · 3 comments
Open

Error 404 for getting Terms from EFO #42

quirinmanz opened this issue Feb 15, 2024 · 3 comments

Comments

@quirinmanz
Copy link

Hi,

Thanks for the helpful package.

I realized that e.g., for EFO, there is a problem when trying to access a term like:

> Term('efo', 'EFO:0001200')
Error during wrapup: HTTP 404 Not Found.

This might be because in

rols/R/Terms.R

Line 192 in 1f85f31

"/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252F")

http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252F is hardcoded, but should be http%253A%252F%252Fwww.ebi.ac.uk%252Fefo%252F for efo instead.

https://www.ebi.ac.uk/ols4/api/ontologies/efo/terms/http%253A%252F%252Fwww.ebi.ac.uk%252Fefo%252FEFO_0001200
works, while
https://www.ebi.ac.uk/ols4/api/ontologies/efo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FEFO_0001200
gives a 404 ERROR.

I would appreciate any help.

Best,
Quirin

@lgatto
Copy link
Owner

lgatto commented Feb 16, 2024

Thank you - yes, there's an issue with URL encoding. Will look into it asap.

@quirinmanz
Copy link
Author

Just a thought:
It looks like the fileLocation in config maps to the correct URL. Maybe the 'Ontology' signature should become the main signature instead of 'character.'

> Ontology('efo')@config$fileLocation
[1] "http://www.ebi.ac.uk/efo/efo.owl"
> Ontology('cl')@config$fileLocation
[1] "http://purl.obolibrary.org/obo/cl.owl"

lgatto added a commit that referenced this issue Feb 16, 2024
@lgatto
Copy link
Owner

lgatto commented Feb 16, 2024

This has been fixed in the latest version - could you check on your side? Thank!

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

2 participants