Request data from data source

Description

This generic function is the main interface to the data behind the Xdata layer. The first argument is the data object, the second argument is an identifier (type character), of the resource requested.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
query(self, resource, ...)

## S4 method for signature 'Xdata,character'
query(self, resource, ...)

## S4 method for signature 'Xsparql,character'
query(self, resource, maxrows = NULL,
  interactive = FALSE, typeconv = TRUE, verbose = getOption("verbose"),
  ...)

## S4 method for signature 'InternalData,character'
query(self, resource, ...)

## S4 method for signature 'UrlData,character'
query(self, resource,
  verbose = getOption("verbose"), ...)

## S4 method for signature 'Mashup,character'
query(self, resource, verbose = TRUE, ...)

## S4 method for signature 'DirectoryLocation,character'
query(self, resource,
  verbose = getOption("verbose"), extract.fct = readLines, ...)

## S4 method for signature 'MemoryLocation2,character'
query(self, resource, ...)

## S4 method for signature 'SftpLocation,character'
query(self, resource,
  verbose = getOption("verbose"), ...)

## S4 method for signature 'Pastebin,character'
query(self, resource,
  verbose = getOption("verbose"), ...)

## S4 method for signature 'ResFunc,character'
query(self, resource,
  verbose = getOption("verbose"), ...)

## S4 method for signature 'WebLocation,character'
query(self, resource,
  verbose = getOption("verbose"), extract.fct = readLines, ...)

## S4 method for signature 'CsvData,character'
query(self, resource,
  verbose = getOption("verbose"), for.update = FALSE, ...)

## S4 method for signature 'GoogleOAuth2,character'
query(self, resource,
  curl = RCurl::getCurlHandle(), ...)

Arguments

self

an Xdata object

resource

an identifier of the resource requested. End-user usually provide character, developer use resource and dispatch on the type.

...

additional parameter

maxrows

(Xsparql) limit of lines to return (default NULL)

interactive

(Xsparql) if TRUE, display result in chunks (default FALSE)

typeconv

(Xsparql) if TRUE (default), convert numbers and dates

verbose

print diagnostic messages, default=FALSE

extract.fct

(DirectoryLocation) which function to use to read file (default readLines)

for.update

(CsvData) update before loading (default FALSE)

curl

(GoogleOAuth2) curl handle

Details

Depending on the data object, additional parameter can be provided.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.