elx_run_query: Execute SPARQL queries

Description Usage Arguments Value Examples

View source: R/elx_run_query.R

Description

Executes cURL request to a pre-defined endpoint of the EU Publications Office. Relies on elx_make_query to generate valid SPARQL queries

Usage

1
2
3
4
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. Rows with even one missing variable are dropped.

Examples

1
elx_run_query(elx_make_query("directive", include_force = TRUE))

eurlex documentation built on Nov. 8, 2020, 4:37 p.m.