Skip to content

Commit a2cb65f

Browse files
committed
#401 fix list_concepts
1 parent 067bdf1 commit a2cb65f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

R/geoflow_vocabulary.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ geoflow_skos_vocabulary <- R6Class("geoflow_skos_vocabulary",
141141

142142
#'@description list_concepts
143143
#'@param lang lang
144+
#'@param mimetype mimetype
144145
#'@return the response of the SPARQL query
145-
list_concepts = function(lang = "en"){
146+
list_concepts = function(lang = "en", mimetype = "text/csv"){
146147
str = paste0("
147148
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
148149
@@ -158,7 +159,7 @@ geoflow_skos_vocabulary <- R6Class("geoflow_skos_vocabulary",
158159
}
159160
ORDER BY ?collection ?concept
160161
")
161-
out = self$query(str = str, graphUri = graphUri, mimetype = mimetype)
162+
out = self$query(str = str, mimetype = mimetype)
162163
out = out[with(out, order(collection, prefLabel)),]
163164
return(out)
164165
},

man/geoflow_skos_vocabulary.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)