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

expand query_sb_doi to include all probable Schemes for DOI #235

Open
aappling-usgs opened this issue Jul 3, 2017 · 1 comment
Open

Comments

@aappling-usgs
Copy link
Contributor

It looks to me like there are more possible Schemes for DOIs than currently recognized by query_sb_doi. For the use case of trying to query for https://www.sciencebase.gov/catalog/item/570bbfa7e4b0ef3b7ca0294a by DOI:

using the scheme embedded in query_sb_doi:

> query_item_identifier(scheme='https://www.sciencebase.gov/vocab/category/item/identifier', type='DOI', key="10.1016/j.coldregions.2007.05.009")
list()

using the scheme I see in the Identifiers section of https://www.sciencebase.gov/catalog/item/570bbfa7e4b0ef3b7ca0294a:

> query_item_identifier(scheme='http://sciencebase.gov/vocab/identifierScheme', type='DOI', key='10.1016/j.coldregions.2007.05.009')
[[1]]
<ScienceBase Item> 
  Title: Snow cover effects on acoustic sensors
  Creator/LastUpdatedBy:      / 
  Provenance (Created / Updated):   / 
  Children: 
  Item ID: 5771b85ae4b07657d1a6be8a
  Parent ID: 5771b40fe4b07657d1a6bb5e

[[2]]
<ScienceBase Item> 
  Title: Snow cover effects on acoustic sensors
  Creator/LastUpdatedBy:      / 
  Provenance (Created / Updated):   / 
  Children: 
  Item ID: 5762cd16e4b07657d19a82a3
  Parent ID: 5762cba1e4b07657d19a7248

[...etc...]

I'm not familiar with the history or status of http://sciencebase.gov/vocab/identifierScheme and https://www.sciencebase.gov/vocab/category/item/identifier. It seems that each works sometimes (for example, query_sb_doi('10.5066/F7ZC80ZP') works with the second scheme). Are there other possible/probable schemes for DOIs that should also be included? query_sb_doi should probably turn up items with DOIs under any sensible scheme that can exist in SB, though it's possible that the best fix for this is on the SB side (to update items that use an old scheme, if one of the above is deprecated) rather than on the sbtools side. Current SB & sbtools maintainers, please weigh in on the desired approach.

@lawinslow
Copy link
Contributor

Comparison:

scheme = 'http://sciencebase.gov/vocab/identifierScheme'

~12k public entries with this scheme

scheme = 'https://www.sciencebase.gov/vocab/category/item/identifier'

~1300 public entries.

Maybe it should be switched. Or added as an additional query. It seems to be winning the standard war.

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