Description Usage Arguments Details Value See Also Examples
View source: R/db-access-low-level.R
In case of error, no execution-aborting condition is set! Instead an NA is returned and a warning may be issued.
1 | submit_sparql(query, access_options, as_dataframe = TRUE)
|
query |
character. Properly formatted SPARQL query to be submitted to an endpoint. |
access_options |
object returned by |
as_dataframe |
logical. TRUE by default. If TRUE, the results are returned as a data.frame. |
This submits to the /repositories/
endpoint, which means that only
certain types (READ) of SPARQL queries are allowed. Namely SELECT,
CONSTRUCT, DESCRIBE, and ASK. For UPDATE-type operations use the
submit_sparql_update
function.
Supported operations:
SELECT CONSTRUCT DESCRIBE ASK
data.frame or object returned by the triplestore. NA if nothing found or query could not be executed.
1 2 3 4 5 6 7 8 | ## Not run:
query = "SELECT * WHERE {
?s ?p ?o .
} LIMIT 100"
submit_sparql(query = query, access_options = graphdb)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.