sparql {uklr} | R Documentation |
Tools to create a custom SPARQL query
Description
Function to create custom queries with the '/landregistry/query endpoint'. All
necessary prefixes have to be included and output will be parsed from json to
dataframe. The most prefixes from land registry can be include with prefix_query
.
Usage
sparql(
query,
endpoint = "http://landregistry.data.gov.uk/landregistry/query",
...
)
prefix_query(query)
Arguments
query |
custom query. |
endpoint |
land registry's web service endpoint. |
... |
further arguments passed to |
Value
Returns a tibble that has been parsed from json.
Examples
custom_query <- "select * where {
<http://landregistry.data.gov.uk/data/ukhpi/region/newport/month/2013-10> ?property ?value
}"
sparql(prefix_query(custom_query))
[Package uklr version 1.0.2 Index]