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
api_get_provenance_metadata is a fantastic resource but I ran into a case where I needed to access provenance information but had the doi and/or url of the dataset rather than the project identifier (e.g., knb-lter-xxx.x.x). Below is an R-based MRE using a dataset from BNZ that I used to address this task but it seems that the utility of api_get_provenance_metadata would be increased if it would natively accept a dataset doi or url in addition to the project ### identifier.
Thanks for this suggestion @srearl! I agree that DOIs and URLs may be more common to users but I'm a little wary of adding (and maintaining) support for DOI and URL inputs to this function because:
1.) It creates a precedent for extending support to all other API functions
2.) URLs (if you mean data package URLs) these may change and break workflows
3.) Package ID is conspicuously listed on the data package landing page
Can you tell me more about your use case and why package IDs may be challenging for users?
I do not know this package very well but can sympathize with this point.
True and definitely a point to consider but they change very rarely (I think rarely, anyway). Perhaps a compromise here, if of interest to explore this further, would be to support DOIs but not URLs. In my case (below), I was provided mostly DOIs.
Indeed. However, the reason that this became an issue for me is that I was provided ~30 DOIs (and a few URLs) - too many to be practical to visit each landing page and harvest the package ID. The MRE that I provided was pulled from a script that I used to loop over the list.
Agreed @srearl, manually parsing that list would be onerous. I'm moving this into the queue with the caveat that it should be implemented for all EDI API functions in this package.
api_get_provenance_metadata
is a fantastic resource but I ran into a case where I needed to access provenance information but had the doi and/or url of the dataset rather than the project identifier (e.g., knb-lter-xxx.x.x). Below is an R-based MRE using a dataset from BNZ that I used to address this task but it seems that the utility ofapi_get_provenance_metadata
would be increased if it would natively accept a dataset doi or url in addition to the project ### identifier.MRE (in R):
The text was updated successfully, but these errors were encountered: