| sparql_dsl | R Documentation |
SPARQL dsl
sparql_dsl(url = NULL)
url |
A SPARQL url |
## Not run:
sparql_dsl("http://dbpedia.org/sparql")
# ask
### should separate where from within ask, so ask() %>% where()
sparql_dsl("http://dbpedia.org/sparql") %>% ask(s, p, o)
# select
### SELECT * WHERE { ?s ?p ?o } OFFSET 100 LIMIT 10
### query = sparql.select.where([:s, :p, :o]).offset(100).limit(10)
sparql_dsl("http://dbpedia.org/sparql") %>%
select() %>%
where(s, p, o) %>%
limit(10)
# construct
### CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o } LIMIT 10
sparql_dsl("http://dbpedia.org/sparql") %>%
construct(s, p, o) %>%
where(s, p, o) %>%
limit(10) %>%
inspect
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.