request: Send an http request with a query and return the response

Description Usage Arguments Value

View source: R/core.R

Description

request sends a SPARQL query to the api endpoint and returns the response object. It is a simple wrapper around httr::POST. It sets the appropriate headers and sends the query as the request body. It does not validate the query or handle the response in any way. The response format is JSON.

Usage

1
request(query)

Arguments

query

A SPARQL query as a string.

Value

The http response object from httr.


olihawkins/pdpr documentation built on Sept. 15, 2020, 4:47 p.m.