You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The citation-count API route returns 0 if no citation with the provided DOI exists. This requires an extra call to the metadata route to verify if the DOI is present in the OCI database or not, which slows down the process. The API call should (imho) return a different status code (404?) and not return a 0, instead either return a null or any non-numerical value (ie N/A).
For example, with a DOI that verifiably does not exist:
The citation-count API route returns 0 if no citation with the provided DOI exists. This requires an extra call to the metadata route to verify if the DOI is present in the OCI database or not, which slows down the process. The API call should (imho) return a different status code (404?) and not return a 0, instead either return a null or any non-numerical value (ie N/A).
For example, with a DOI that verifiably does not exist:
https://opencitations.net/index/api/v1/citation-count/10.asdf
returns
Call to the metadata API reveals that the DOI is not known to OCI:
https://opencitations.net/index/api/v1/metadata/10.asdf
I may be able to help with the implementation if needed, but I am not sure if I understand SPARQL well enough.
The text was updated successfully, but these errors were encountered: