elx_run_query: Execute SPARQL queries

View source: R/elx_run_query.R

elx_run_queryR Documentation

Execute SPARQL queries

Description

Executes cURL request to a pre-defined endpoint of the EU Publications Office. Relies on elx_make_query to generate valid SPARQL queries. Results are capped at 1 million rows.

Usage

elx_run_query(
  query = "",
  endpoint = "http://publications.europa.eu/webapi/rdf/sparql"
)

Arguments

query

A valid SPARQL query specified by elx_make_query() or manually

endpoint

SPARQL endpoint

Value

A data frame containing the results of the SPARQL query. Column work contains the Cellar URI of the resource.

Examples


elx_run_query(elx_make_query("directive", include_force = TRUE, limit = 10))


eurlex documentation built on Sept. 8, 2023, 6:22 p.m.