sparql_select: Send a select query and return the response as a tibble

Description Usage Arguments Value

View source: R/core.R

Description

sparql_select sends a SPARQL query to the api endpoint and returns the response as a tibble. The SPARQL should be a SELECT query as the response is processed as tabular data. The function will convert datatypes that it recognises. It currently recognises date types. All other data returned in the tibble will be strings. If the query syntax is not valid or the request fails for any other reason an error will be raised with the response text.

Usage

1

Arguments

query

A SPARQL SELECT query as a string.

Value

A tibble containing the results of the query.


houseofcommonslibrary/pdpr documentation built on Sept. 14, 2020, 12:04 a.m.