Code
spq_treat_argument("something(bla)")
Condition
Error:
x Can't find SPARQL equivalent for something().
i If you think there should be one, open an issue in https://github.com/lvaudor/glitter.
Code
spq_init() %>% spq_add("?film wdt:P31 wd:Q11424") %>% spq_mutate(
narrative_location = wdt::P840(film)) %>% spq_mutate(count = n()) %>%
spq_select(-film, -narrative_location)
Output
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT (COUNT(*) AS ?count)
WHERE {
?film wdt:P31 wd:Q11424.
?film wdt:P840 ?narrative_location.
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.