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)
sdc <- papers_by_type(my_url) sdc
We see that the most numerous category is conference papers followed by journal. The total number of papers is about r sprintf("%d", sum(sdc$value))
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
library(petro.One) my_url <- make_search_url(query = "deepwater") sdc <- papers_by_type(my_url) sdc
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.