Execute SPARQL select query and parse results

query(query_string, endpoint = default_endpoint(), format = "csv")

Arguments

query_string

A string with the select query

endpoint

A string defining the endpoint

format

A string defining the format, either "csv" or "json"

Value

A data frame with a column for each variable binding, and a row per result

Examples

if (FALSE) { query("SELECT * WHERE { ?s ?p ?o } LIMIT 10", "https://statistics.data.gov.uk/sparql") }