-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use correct property for labelling HAL, let users enter property
- Loading branch information
Showing
16 changed files
with
119 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#' Create the endpoint info object for `spq_init()` | ||
#' | ||
#' @param label_property Property used by the endpoint for labelling. | ||
#' | ||
#' @return A list to be used in `spq_init()`'s `endpoint_info` argument. | ||
#' @export | ||
#' | ||
#' @examples | ||
#' spq_endpoint_info(label_property = "skos:preflabel") | ||
spq_endpoint_info <- function(label_property = "rdfs:prefLabel") { | ||
|
||
# TODO check property more | ||
if (!is.character(label_property)) { | ||
cli::cli_abort("Must provide a character as {.arg label_property}.") | ||
} | ||
|
||
structure( | ||
list( | ||
label_property = label_property | ||
), | ||
class = "glitter_endpoint_info" | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
endpoints=tibble::tibble(name=c("wikidata", | ||
"dbpedia", | ||
"databnf", | ||
"isidore", | ||
"hal", | ||
"symogih"), | ||
url=c("https://query.wikidata.org/", | ||
"https://dbpedia.org/sparql", | ||
"https://data.bnf.fr/sparql", | ||
"https://isidore.science/sparql", | ||
"http://sparql.archives-ouvertes.fr/sparql", | ||
"http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql")) | ||
usual_endpoints=readr::read_csv("data-raw/usual_endpoints.csv") | ||
usethis::use_data(usual_endpoints,overwrite=TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name,url | ||
wikidata,https://query.wikidata.org/ | ||
dbpedia,https://dbpedia.org/sparql | ||
databnf,https://data.bnf.fr/sparql | ||
isidore,https://isidore.science/sparql | ||
hal,http://sparql.archives-ouvertes.fr/sparql | ||
name,url,label_property | ||
wikidata,https://query.wikidata.org/,rdfs:label | ||
dbpedia,https://dbpedia.org/sparql,rdfs:label | ||
databnf,https://data.bnf.fr/sparql,rdfs:label | ||
isidore,https://isidore.science/sparql,rdfs:label | ||
hal,http://sparql.archives-ouvertes.fr/sparql,skos:prefLabel |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters