When a query is returned by OnePetro inside the web page with the results also comes the dc_type
or document type for all the papers that returned from that search.
The type of papers are:
If we want to know what type of papers are available for a particular search we follow these steps:
Our search is for the exact words “well test”. How many papers return from that search?
library(petro.One)
my_url <- make_search_url(query = "well test",
how = "all") # exact match
get_papers_count(my_url)
## [1] 12877
## # A tibble: 7 x 2
## name value
## <chr> <dbl>
## 1 Chapter 8
## 2 Conference paper 10002
## 3 General 194
## 4 Journal paper 2619
## 5 Media 9
## 6 Other 8
## 7 Presentation 37
We see that the most numerous category is conference papers followed by journal. The total number of papers is about 12877
Depending of the words we are searching, the document types that return from the search may not be the same in all cases. For instance, in this case, we don’t get the type for Other
or Chapter
.
library(petro.One)
my_url <- make_search_url(query = "smart completion",
how = "all") # exact match
sdc <- papers_by_type(my_url)
sdc
## # A tibble: 5 x 2
## name value
## <chr> <dbl>
## 1 Conference paper 404
## 2 General 1
## 3 Journal paper 41
## 4 Media 1
## 5 Presentation 3
## # A tibble: 7 x 2
## name value
## <chr> <dbl>
## 1 Chapter 3
## 2 Conference paper 14175
## 3 General 45
## 4 Journal paper 2587
## 5 Media 73
## 6 Other 12
## 7 Presentation 514