Closed markmcdowall closed 4 years ago
You've encountered one of the main problems we have as OLS maintainers: that the ontology links often become dead. Our own indexer which runs daily also hits many of these dead links, so we have to skip over the ones that fail and these ontologies will not be updated until we update the OLS configuration with the new URLs.
We make a best effort to update the URLs where we can, but with the growing number of ontologies indexed it is a moving target. Therefore, you should do as our indexer does and not assume that all of the URLs in the fileLocation property will resolve correctly.
phi is indeed loaded from a file:// URL on our internal NFS, which is not ideal. I will see if there is a http URL we can use instead.
In the REST API the links to the owl files don't always work.
I get the list of ontologies by:
If I test the headers based on
json_document['_embedded']['ontologies']['config']['id']
Then the following URLs either return 404, or have various connection issues:
However, if I use the
json_document['_embedded']['ontologies']['config']['fileLocation']
, which would give me the EDAM owl file. This raises errors with other vocabs where sometimes it returns links to the EBI's internal file system (/nfs/pandas/ensembl/.../.../PHI.obo
)Neither using
fileLocation
or theid
seems to guarentee getting the source owl file for all ontologies.