spq_select | R Documentation |
Select (and create) particular variables
spq_select(.query = NULL, ..., .spq_duplicate = NULL)
.query |
a list with elements of the query |
... |
variables by which to arrange
(or SPARQL strings escaped with |
.spq_duplicate |
How to handle duplicates: keep them ( |
A query object
spq_init() |>
spq_prefix(prefixes = c(dct = "http://purl.org/dc/terms/")) |>
spq_add(spq('?lexemeId dct:language wd:Q1860')) |>
spq_add(spq("?lexemeId wikibase:lemma ?lemma")) |>
spq_filter(str_detect(lemma, '^pota.*')) |>
spq_select(- lemma)
spq_init() |>
spq_prefix(prefixes = c(dct = "http://purl.org/dc/terms/")) |>
spq_add(spq('?lexemeId dct:language wd:Q1860')) |>
spq_add(spq("?lexemeId wikibase:lemma ?lemma")) |>
spq_filter(str_detect(lemma, '^pota.*')) |>
spq_select(lemma)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.