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.
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
# \donttest{
elx_run_query(elx_make_query("directive", include_force = TRUE, limit = 10))
#> work type celex force
#> 1 2ecb0332-5fb2-11f1-9af0-01aa75ed71a1 DIR 32026L1194 true
#> 5 86beade5-741e-11f1-9800-01aa75ed71a1 DIR 32026L1472 false
#> 9 0d76f53e-267f-495c-9854-15e8c3ee05c5 DIR 31965L0066 false
#> 13 47ba284d-04b9-11e3-a352-01aa75ed71a1 DIR 32013L0038 true
#> 17 899b6c44-84ec-11e4-91cd-01aa75ed71a1 DIR 32014L0107 true
#> 21 931d7a62-e01e-4f41-a318-a048818fc71d DIR 31985L0346 false
#> 25 9e1d16c5-8aef-42ee-874c-283a182c49a9 DIR 31974L0394 false
#> 29 a5d0648f-2957-11e6-b616-01aa75ed71a1 DIR 32016L0882 true
#> 33 be551f62-20ea-411c-ab0f-72439b88517a DIR 32007L0073 false
#> 37 da1ee45a-db1d-4e03-b225-f0fc3a3b5bff DIR 32006L0055 true
# }
