Description Usage Arguments Value References Examples
AFAICT this API is a REST wrapper around the SPARQL service
1 2 3 4 5 6 7 |
doi |
(character) one or more Digital Object Identifiers (DOIs) |
exclude |
(character) a field_name; all the rows that have an empty value in the field_name specified are removed from the result set |
filter |
|
sort |
|
... |
curl options passed on to crul::verb-GET |
oci |
(character) one or more Open Citation Identifiers (OCIs) |
data.frame, see http://opencitations.net/index/coci/api/v1 for explanation of the resulting columns
http://opencitations.net/index/coci/api/v1, https://github.com/opencitations/api-coci
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | doi1 <- "10.1108/jd-12-2013-0166"
doi2 <- "10.1371/journal.pgen.1005937"
oci1 <-
"02001010806360107050663080702026306630509-0200101080636102704000806"
oci2 <-
"0200101000836191363010263020001036300010606-020010003083604090301050910"
if (
crul::ok(
"http://opencitations.net/index/coci/api/v1/references/10.1108/jd-12-2013-0166",
timeout_ms = 1000L)
) {
try(
oc_coci_cites(doi1),
silent = TRUE
)
}
### More examples
## Not run:
# references
oc_coci_refs(doi1, exclude = "oci")
oc_coci_refs(doi1, filter = "date:>2016-05", verbose = TRUE)
oc_coci_refs(doi2)
oc_coci_refs(c(doi1, doi2))
# citations
oc_coci_cites(doi1, exclude = "oci")
oc_coci_cites(doi2)
oc_coci_cites(c(doi1, doi2))
# metadata
oc_coci_meta(doi2)
oc_coci_meta(c(doi1, doi2))
# citation - an OCI instead of a DOI
oc_coci_citation(oci1)
oc_coci_citation(c(oci1, oci2))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.