View source: R/elx_make_query.R
| elx_make_query | R Documentation |
Generates pre-defined or manual SPARQL queries to retrieve document ids from Cellar. List of available resource types: http://publications.europa.eu/resource/authority/resource-type . Note that not all resource types are compatible with default parameter values.
elx_make_query(
resource_type = c("any", "directive", "regulation", "decision", "recommendation",
"intagr", "caselaw", "manual", "proposal", "national_impl"),
manual_type = "",
directory = NULL,
sector = NULL,
include_corrigenda = FALSE,
include_celex = TRUE,
include_lbs = FALSE,
include_date = FALSE,
date_from = NULL,
date_to = NULL,
include_date_force = FALSE,
include_date_endvalid = FALSE,
include_date_transpos = FALSE,
include_date_lodged = FALSE,
include_force = FALSE,
include_eurovoc = FALSE,
include_citations = FALSE,
include_citations_detailed = FALSE,
include_author = FALSE,
include_title = FALSE,
include_directory = FALSE,
include_directory_code = FALSE,
include_sector = FALSE,
include_ecli = FALSE,
include_court_procedure = FALSE,
include_judge_rapporteur = FALSE,
include_advocate_general = FALSE,
include_court_formation = FALSE,
include_court_scholarship = FALSE,
include_court_origin = FALSE,
include_original_language = FALSE,
include_proposal = FALSE,
order = FALSE,
limit = NULL
)
resource_type |
Type of resource to be retrieved via SPARQL query |
manual_type |
Define manually the type of resource to be retrieved |
directory |
Restrict the results to a given directory code |
sector |
Restrict the results to a given sector code |
include_corrigenda |
If |
include_celex |
If |
include_lbs |
If |
include_date |
If |
date_from |
Restrict results to documents dated on or after this date, in |
date_to |
Restrict results to documents dated on or before this date, in |
include_date_force |
If |
include_date_endvalid |
If |
include_date_transpos |
If |
include_date_lodged |
If |
include_force |
If |
include_eurovoc |
If |
include_citations |
If |
include_citations_detailed |
If |
include_author |
If |
include_title |
If |
include_directory |
If |
include_directory_code |
If |
include_sector |
If |
include_ecli |
If |
include_court_procedure |
If |
include_judge_rapporteur |
If |
include_advocate_general |
If |
include_court_formation |
If |
include_court_scholarship |
If |
include_court_origin |
If |
include_original_language |
If |
include_proposal |
If |
order |
Order results by ids |
limit |
Limit the number of results, for testing purposes mainly |
When date_from or date_to are specified, the underlying SPARQL query
requires ?date to be a well-formed xsd:date. Any document whose date
does not resolve to a valid xsd:date would be silently excluded from
the filtered results, without a warning or error.
When include_author is TRUE, the query uses GROUP_CONCAT to combine
multiple authors for the same document into a single pipe-separated
(|) string in the author column, rather than returning one row per
author. This avoids duplicate rows for documents with multiple authors,
but means the query switches from SELECT DISTINCT to SELECT ... GROUP BY
internally when include_author is used.
A character string containing the SPARQL query
elx_make_query(resource_type = "directive", include_date = TRUE, include_force = TRUE)
elx_make_query(resource_type = "directive", include_title = TRUE)
elx_make_query(resource_type = "directive", date_from = "2015-01-01", date_to = "2015-12-31")
elx_make_query(resource_type = "regulation", include_corrigenda = TRUE, order = TRUE)
elx_make_query(resource_type = "any", sector = 2)
elx_make_query(resource_type = "manual", manual_type = "SWD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.