spq_perform | R Documentation |
Assemble query parts into a sparql query and send it to endpoint to get a tibble as a result.
spq_perform(
.query,
endpoint = lifecycle::deprecated(),
user_agent = lifecycle::deprecated(),
max_tries = lifecycle::deprecated(),
max_seconds = lifecycle::deprecated(),
timeout = lifecycle::deprecated(),
request_type = lifecycle::deprecated(),
dry_run = FALSE,
replace_prefixes = FALSE
)
A query object
Control the way the query is performed via the control_request
argument of spq_init()
.
This way you can create a basic spq object with all the correct options
corresponding to the SPARQL service you are using, and then use it as
the basis of all your subsequent glitter pipelines.
## Not run:
spq_init() %>%
spq_add(.subject="?city",.verb="wdt:P31",.object="wd:Q515") %>%
spq_add(.subject="?city",.verb="wdt:P1082",.object="?pop") %>%
spq_label(city) %>%
spq_head(n=5) %>%
spq_perform()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.