Skip to content

Commit

Permalink
update codemeta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Apr 17, 2018
1 parent c27ac82 commit 3a63240
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 36 deletions.
13 changes: 11 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ Description: Retrieve, map and summarize data from the 'VertNet.org' archives.
places, and dates. In addition, there is an interface for conducting spatially
delimited searches, and another for requesting large 'datasets' via email.
Version: 0.7.0
Author: Scott Chamberlain [aut, cre], Chris Ray [aut], Vijay Barve [aut]
Maintainer: Scott Chamberlain <[email protected]>
Authors@R: c(
person("Scott", "Chamberlain",
role = c("aut", "cre"),
email = "[email protected]",
comment = "http://orcid.org/0000-0003-1444-9135"),
person("Chris", "Ray", role = "ctb"),
person("Vijay", "Barve", role = "ctb")
)
License: MIT + file LICENSE
LazyData: true
URL: https://github.com/ropensci/rvertnet
Expand All @@ -22,3 +28,6 @@ Suggests:
testthat,
knitr
RoxygenNote: 6.0.1
X-schema.org-applicationCategory: Data Access
X-schema.org-keywords: species, occurrences, biodiversity, maps, vertnet, mammals, mammalia, specimens
X-schema.org-isPartOf: "https://ropensci.org"
13 changes: 10 additions & 3 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ vert_GET <- function(fxn="searchbyterm", args, limit = 1000, messages = TRUE,
i <- i + 1

# http
tt <- cli$get('api/search', query = list(q = make_q(fxn, args, cursor, getlim(limit, allres))), ...)
tt <- cli$get('api/search',
query = list(q = make_q(fxn, args, cursor, getlim(limit, allres))), ...)
tt$raise_for_status()
txt <- tt$parse("UTF-8")

Expand All @@ -62,7 +63,11 @@ vert_GET <- function(fxn="searchbyterm", args, limit = 1000, messages = TRUE,
allres <- sum(vapply(result, NROW, 1))
if (char2num(avail) <= allres) allres <- limit
}
df <- if (sum(sapply(result, NROW)) == 0) data.frame(NULL, stringsAsFactors = FALSE) else bind_rows(result)
df <- if (sum(sapply(result, NROW)) == 0) {
data.frame(NULL, stringsAsFactors = FALSE)
} else {
bind_rows(result)
}
names(df) <- tolower(names(df))
if (only_dwc) {
res <- get_terms()
Expand Down Expand Up @@ -144,7 +149,9 @@ noc <- function(x, fxn){
}

make_bigq <- function(x, email, rfile){
ff <- sprintf('{"q":"%s","n":"%s","e":"%s"}', noc(gsub('\"|\\{|\\}', "", jsonlite::toJSON(x, auto_unbox = TRUE)), ""), rfile, email)
ff <- sprintf('{"q":"%s","n":"%s","e":"%s"}',
noc(gsub('\"|\\{|\\}', "", jsonlite::toJSON(x, auto_unbox = TRUE)), ""),
rfile, email)
tmp <- gsub(":>", ">", gsub(":<", "<", gsub(":=", "=", ff)))
tmp <- gsub("year\\.[0-9]", "year", tmp)
tmp <- gsub("month\\.[0-9]", "month", tmp)
Expand Down
61 changes: 30 additions & 31 deletions codemeta.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"@context": ["http://purl.org/codemeta/2.0", "http://schema.org"],
"@context": [
"http://purl.org/codemeta/2.0",
"http://schema.org"
],
"@type": "SoftwareSourceCode",
"identifier": "rvertnet",
"description": "Retrieve, map and summarize data from the 'VertNet.org' archives.\n Functions allow searching by many parameters, including 'taxonomic' names,\n places, and dates. In addition, there is an interface for conducting spatially\n delimited searches, and another for requesting large 'datasets' via email.",
"name": "rvertnet: Search 'Vertnet', a 'Database' of Vertebrate Specimen Records",
"codeRepository": "https://github.com/ropensci/rvertnet",
"issueTracker": "https://github.com/ropensci/rvertnet/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.6.3.9110",
"version": "0.7.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"version": "3.4.3",
"version": "3.4.4",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 3.4.3 Patched (2018-01-01 r74017)",
"runtimePlatform": "R version 3.4.4 Patched (2018-03-19 r74426)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand All @@ -25,38 +28,19 @@
{
"@type": "Person",
"givenName": "Scott",
"familyName": "Chamberlain"
},
{
"@type": "Person",
"givenName": "Chris",
"familyName": "Ray"
},
{
"@type": "Person",
"givenName": "Vijay",
"familyName": "Barve"
"familyName": "Chamberlain",
"email": "[email protected]",
"@id": "http://orcid.org/0000-0003-1444-9135"
}
],
"maintainer": {
"@type": "Person",
"givenName": "Scott",
"familyName": "Chamberlain",
"email": "[email protected]"
"email": "[email protected]",
"@id": "http://orcid.org/0000-0003-1444-9135"
},
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "roxygen2",
"name": "roxygen2",
"version": "6.0.1",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Central R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
}
},
{
"@type": "SoftwareApplication",
"identifier": "testthat",
Expand Down Expand Up @@ -85,7 +69,7 @@
"@type": "SoftwareApplication",
"identifier": "jsonlite",
"name": "jsonlite",
"version": "1.0",
"version": "1.5",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand All @@ -97,7 +81,7 @@
"@type": "SoftwareApplication",
"identifier": "crul",
"name": "crul",
"version": "0.3.8",
"version": "0.5.2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -143,5 +127,20 @@
"contIntegration": "https://travis-ci.org/ropensci/rvertnet",
"releaseNotes": "https://github.com/ropensci/rvertnet/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/rvertnet/blob/master/README.md",
"fileSize": "157.741KB"
"fileSize": "158.151KB",
"contributor": [
{
"@type": "Person",
"givenName": "Chris",
"familyName": "Ray"
},
{
"@type": "Person",
"givenName": "Vijay",
"familyName": "Barve"
}
],
"applicationCategory": "DataAccess",
"isPartOf": "\"https://ropensci.org\"",
"keywords": ["species", "occurrences", "biodiversity", "maps", "vertnet", "mammals", "mammalia", "specimens"]
}

0 comments on commit 3a63240

Please sign in to comment.