Skip to content

Commit 1c6d9b1

Browse files
authored
Merge pull request #179 from UA-Libraries-Research-Data-Services/fix-citation-download
Fix citation download
2 parents e02a88b + 554f665 commit 1c6d9b1

12 files changed

Lines changed: 28 additions & 11 deletions

File tree

rmarkdown/pubchem.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Please see the following resources for more information on API usage:
4141

4242
**Attribution:** This tutorial was adapted from supporting information in:
4343

44-
**Scalfani, V. F.**; Ralph, S. C. Alshaikh, A. A.; Bara, J. E. Programmatic Compilation of Chemical Data and Literature From PubChem Using Matlab. *Chemical Engineering Education*, **2020**, *54*, 230. https://doi.org/10.18260/2-1-370.660-115508 and https://github.com/vfscalfani/MATLAB-cheminformatics
44+
**Scalfani, V. F.**; Ralph, S. C. Alshaikh, A. A.; Bara, J. E. Programmatic Compilation of Chemical Data and Literature From PubChem Using Matlab. *Chemical Engineering Education*, **2020**, *54*, 230. https://doi.org/10.18260/2-1-370.660-115508 and https://github.com/UA-Libraries-Research-Data-Services/MATLAB-cheminformatics
4545

4646
## Setup
4747

src/_static/CITATION.bib

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@article{scalfani_creating_2023,
2+
title = {Creating a {Scholarly} {API} {Cookbook}: {Supporting} {Library} {Users} with {Programmatic} {Access} to {Information}},
3+
issn = {1092-1206},
4+
shorttitle = {Creating a {Scholarly} {API} {Cookbook}},
5+
url = {https://journals.library.ualberta.ca/istl/index.php/istl/article/view/2766},
6+
doi = {10.29173/istl2766},
7+
abstract = {Scholarly web-based application programming interfaces (APIs) allow users to interact with information and data programmatically. Interacting with information programmatically allows users to create advanced information query workflows and quickly access machine-readable data for downstream computations. With the growing availability of scholarly APIs from open and commercial library databases, supporting access to information via an API has become a key support area for research data services in libraries. This article describes our efforts with supporting API access through the development of an online Scholarly API Cookbook. The Cookbook contains code recipes (i.e., tutorials) for getting started with 10 different scholarly APIs, including for example, Scopus, World Bank, and PubMed. API tutorials are available in Python, Bash, Matlab, and Mathematica. A tutorial for interacting with library catalog data programmatically via Z39.50 is also included, as traditional library catalog metadata is rarely available via an API. In addition to describing the Scholarly API Cookbook content, we discuss our experiences building a student research data services programming team, challenges we encountered, and ideas to improve the Cookbook. The University of Alabama Libraries Scholarly API Cookbook is freely available and hosted on GitHub. All code within the API Cookbook is licensed with the permissive MIT license, and as a result, users are free to reuse and adapt the code in their teaching and research.},
8+
number = {104},
9+
urldate = {2023-10-13},
10+
journal = {Issues in Science and Technology Librarianship},
11+
author = {Scalfani, Vincent F. and Walker, Kevin W. and Simpson, Lance and Fernandez, Avery M. and Patel, Vishank D. and Ramig, Anastasia and Gomes, Cyrus and Moen, Michael T. and Nguyen, Adam M.},
12+
month = oct,
13+
year = {2023},
14+
}

src/about/cite.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Citing the Cookbook
22
%%%%%%%%%%%%%%%%%%%%
33

4-
If you reuse the code, attribution would be appreciated. Please link to the Cookbook and cite our manuscript:
4+
If you reuse the code, attribution would be appreciated. Please link to the Cookbook tutorial
5+
page and attribute the authors and UA Libraries for the tutorial (see each tutorial page for authors).
6+
If you use or are referring to the Cookbook in scholarship, please also consider citing our manuscript:
57

68
Link to Cookbook: `<https://ua-libraries-research-data-services.github.io/UALIB_ScholarlyAPI_Cookbook>`_
79

@@ -28,7 +30,7 @@ Citation: Scalfani, V. F.; Walker, K. W.; Simpson, L.; Fernandez, A. M.; Patel,
2830

2931
<div class="rmd-btn-wrapper">
3032
<a class="rmd-btn"
31-
href="../../CITATION.bib"
33+
href="../_static/CITATION.bib"
3234
download>
3335
Download CITATION.bib
3436
</a>

src/overview/college-scorecard.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See the Department of Education's website for more information on how the data o
1010

1111
.. rubric:: References
1212

13-
.. [#cs1] `<https://collegescorecard.ed.gov/data/api-documentation#api-access-and-authentication>`_
13+
.. [#cs1] `<https://collegescorecard.ed.gov/data/api-documentation>`_
1414
1515
.. [#cs2] `<https://collegescorecard.ed.gov/data>`_
1616

src/overview/openalex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ See the OpenAlex API documentation [#oa2]_ for more information on accessing the
1212

1313
.. [#oa1] `<https://ourresearch.org/>`_
1414
15-
.. [#oa2] `<https://docs.openalex.org/>`_
15+
.. [#oa2] `<https://developers.openalex.org/>`_
1616
1717
.. [#oa3] `<https://creativecommons.org/publicdomain/zero/1.0/>`_
1818

src/overview/pubchem-periodic-table.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the PubChem Periodic Table [#ppt1]_ and PubChem APIs documentation [#ppt2]_
1414

1515
.. [#ppt1] `<https://pubchem.ncbi.nlm.nih.gov/periodic-table/>`_
1616
17-
.. [#ppt2] `<https://pubchemdocs.ncbi.nlm.nih.gov/programmatic-access>`_
17+
.. [#ppt2] `<https://pubchem.ncbi.nlm.nih.gov/docs/programmatic-access>`_
1818
1919
.. [#ppt3] `<https://www.ncbi.nlm.nih.gov/home/about/policies/>`_
2020

src/overview/pubchem.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ PubChem APIs allow programmatic access to search and retrieve small molecule and
88

99
.. rubric:: References
1010

11-
.. [#pubchem1] `<https://pubchemdocs.ncbi.nlm.nih.gov/about>`_
11+
.. [#pubchem1] `<https://pubchem.ncbi.nlm.nih.gov/docs/about>`_
1212

src/overview/wos.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ Please see the WOS API release notes [#wos4]_ to stay up-to-date on the APIs. Se
2626
2727
.. [#wos5] `<https://clarivate.com/wp-content/uploads/dlm_uploads/2019/08/End-User-Terms.pdf>`_
2828
29-
.. [#wos6] `<https://clarivate.com/wp-content/uploads/dlm_uploads/2023/12/Product-Terms-v3.7-Web-of-Science-APIs.pdf>`_
29+
.. [#wos6] `<https://clarivate.com/legal-center/terms-of-business/product-service-terms/>`_

src/python/crossref.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5+
"id": "4c9acd0e",
56
"metadata": {},
67
"source": [
78
"# Crossref API in Python\n",

src/python/openalex.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"\n",
6767
"An API key is required to access the OpenAlex API. Please see the <a href=\"https://developers.openalex.org/guides/authentication\" target=\"_blank\">Authentication & Pricing page</a> for instructions on how to obtain one.\n",
6868
"\n",
69-
"We keep our email in a `.env` file and use the `dotenv` library to access it. If you would like to use this method, create a `.env` file and add the following line to it:\n",
69+
"We keep our API key in a `.env` file and use the `dotenv` library to access it. If you would like to use this method, create a `.env` file and add the following line to it:\n",
7070
"\n",
7171
"```text\n",
7272
"OPENALEX_API_KEY=\"YOUR-API-KEY-HERE\"\n",

0 commit comments

Comments
 (0)