Skip to content

Commit a2e24f0

Browse files
committed
markdown source builds
Auto-generated via {sandpaper} Source : 1aef633 Branch : main Author : Owen Stephens <[email protected]> Time : 2023-08-28 16:13:12 +0000 Message : Merge pull request #310 from mahdi-robbani/main #307 Replace dashes with underscores (13-looking-up-data.md)
1 parent 19ffb29 commit a2e24f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

13-looking-up-data.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Because retrieving data from external URLs takes time, this exercise targets a s
5353
- Facet by Star
5454
- Choose the single row
5555
- In the ISSN column use the dropdown menu to choose 'Edit column->Add column by fetching URLs'
56-
- Give the column a name e.g. "Journal-Details"
56+
- Give the column a name e.g. "Journal_details"
5757
- In the expression box you need to write some GREL where the output of the expression is a URL which can be used to retrieve data (the format of the data could be HTML, XML, JSON, or some other text format)
5858

5959
In this case we are going to use the CrossRef API: [https://api.crossref.org/](https://api.crossref.org/). Read more about the CrossRef service: [https://crossref.org](https://crossref.org). Note that API providers may impose rate limits or have other requirements for using their data, so it's important to check the site's documentation. To comply with API rate limits, use the Throttle Delay setting to specify the number of milliseconds between URL requests. CrossRef, for instance, [asks users](https://www.crossref.org/documentation/retrieve-metadata/rest-api/tips-for-using-the-crossref-rest-api/#pick-the-right-service-level) to "specify a User-Agent header that properly identifies your script or tool and that provides a means of contacting you via email using 'mailto:'." User-agent headers provide administrators with user information that facilitates better administration and moderation of the API, and it is generally good etiquette to include a header with any API request.
@@ -79,7 +79,7 @@ At this point you should have a new cell containing a long text string in a form
7979
OpenRefine has a function for extracting data from JSON (sometimes referred to as 'parsing' the JSON). The 'parseJson' function is explained in more detail at [https://docs.openrefine.org/manual/grelfunctions/#format-based-functions-json-html-xml](https://docs.openrefine.org/manual/grelfunctions/#format-based-functions-json-html-xml).
8080

8181
- In the new column you've just added use the dropdown menu to access 'Edit column->Add column based on this column'
82-
- Add a name for the new column e.g. "Journal-Title"
82+
- Add a name for the new column e.g. "Journal_title"
8383
- In the Expression box type the GREL `value.parseJson().message.title`
8484
- You should see in the Preview the Journal title displays
8585

md5sum.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"episodes/10-data-transformation.md" "47399b9f87a7c2dfae1d6b67eea71cc7" "site/built/10-data-transformation.md" "2023-05-26"
1616
"episodes/11-using-arrays-transformations.md" "0a72814d1256acbed6a6113a741317c6" "site/built/11-using-arrays-transformations.md" "2023-06-27"
1717
"episodes/12-export-transformation.md" "aa6dd576a893a0870baa24611573e50b" "site/built/12-export-transformation.md" "2023-05-01"
18-
"episodes/13-looking-up-data.md" "116c8f2a94a81ff9b8649811e1be658c" "site/built/13-looking-up-data.md" "2023-05-01"
18+
"episodes/13-looking-up-data.md" "b0d55624c30b2bbf8fad445b5937067f" "site/built/13-looking-up-data.md" "2023-08-28"
1919
"instructors/instructor-notes.md" "616df143615c98dd1ecf47653a358c3d" "site/built/instructor-notes.md" "2023-05-01"
2020
"learners/discuss.md" "71aa789dd018f4b4ea80e1ceb8605d73" "site/built/discuss.md" "2023-05-01"
2121
"learners/reference.md" "be4b8a891809c85a625fff879855921a" "site/built/reference.md" "2023-05-01"

0 commit comments

Comments
 (0)