elx_make_query: Create SPARQL quries

Description Usage Arguments Value Examples

View source: R/elx_make_query.R

Description

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 the pre-defined query.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
elx_make_query(
  resource_type = c("directive", "regulation", "decision", "recommendation", "intagr",
    "caselaw", "manual", "proposal", "national_impl"),
  manual_type = "",
  include_corrigenda = FALSE,
  include_celex = TRUE,
  include_lbs = FALSE,
  include_date = FALSE,
  include_date_force = FALSE,
  include_date_endvalid = FALSE,
  include_date_transpos = FALSE,
  include_force = FALSE,
  include_eurovoc = FALSE,
  include_author = FALSE,
  include_citations = FALSE,
  order = FALSE,
  limit = NULL
)

Arguments

resource_type

Type of resource to be retrieved via SPARQL query

manual_type

Define manually the type of resource to be retrieved

include_corrigenda

If 'TRUE', results include corrigenda

include_celex

If 'TRUE', results include CELEX identifier for each resource URI

include_lbs

If 'TRUE', results include legal bases of legislation

include_date

If 'TRUE', results include document date

include_date_force

If 'TRUE', results include date of entry into force

include_date_endvalid

If 'TRUE', results include date of end of validity

include_date_transpos

If 'TRUE', results include date of transposition deadline for directives

include_force

If 'TRUE', results include whether legislation is in force

include_eurovoc

If 'TRUE', results include EuroVoc descriptors of subject matter

include_author

If 'TRUE', results include document author(s)

include_citations

If 'TRUE', results include citations (CELEX-labelled)

order

Order results by ids

limit

Limit the number of results, for testing purposes mainly

Value

A character string containing the SPARQL query

Examples

1
2
3
4
elx_make_query(resource_type = "directive", include_date = TRUE, include_force = TRUE)
elx_make_query(resource_type = "regulation", include_corrigenda = TRUE, order = TRUE)
elx_make_query(resource_type = "caselaw")
elx_make_query(resource_type = "manual", manual_type = "SWD")

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