Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/KorAPConnection.R |
| 3 | \docType{class} |
| 4 | \name{KorAPConnection-class} |
| 5 | \alias{KorAPConnection-class} |
| 6 | \alias{KorAPConnection} |
| 7 | \alias{initialize,KorAPConnection-method} |
Marc Kupietz | d0d3e9b | 2019-09-24 17:36:03 +0200 | [diff] [blame] | 8 | \alias{apiCall,KorAPConnection-method} |
| 9 | \alias{apiCall} |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 10 | \alias{show,KorAPConnection-method} |
| 11 | \title{Class KorAPConnection} |
| 12 | \usage{ |
| 13 | \S4method{initialize}{KorAPConnection}(.Object, |
Marc Kupietz | f94a6c8 | 2019-09-19 11:32:07 +0200 | [diff] [blame] | 14 | KorAPUrl = "https://korap.ids-mannheim.de/", apiVersion = "v1.0", |
Marc Kupietz | d0d3e9b | 2019-09-24 17:36:03 +0200 | [diff] [blame] | 15 | apiUrl, userAgent = "R-KorAP-Client", timeout = 10, |
| 16 | verbose = FALSE) |
| 17 | |
| 18 | \S4method{apiCall}{KorAPConnection}(kco, url) |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 19 | |
| 20 | \S4method{show}{KorAPConnection}(object) |
| 21 | } |
| 22 | \arguments{ |
| 23 | \item{.Object}{KorAPConnection object} |
| 24 | |
| 25 | \item{KorAPUrl}{the URL of the KorAP server instance you want to access.} |
| 26 | |
| 27 | \item{apiVersion}{which version of KorAP's API you want to connect to.} |
| 28 | |
| 29 | \item{apiUrl}{URL of the KorAP web service.} |
| 30 | |
Marc Kupietz | d0d3e9b | 2019-09-24 17:36:03 +0200 | [diff] [blame] | 31 | \item{userAgent}{user agent string.} |
| 32 | |
| 33 | \item{timeout}{time out in seconds.} |
| 34 | |
Marc Kupietz | 7776dec | 2019-09-27 16:59:02 +0200 | [diff] [blame] | 35 | \item{verbose}{logical. Decides whether following operations will default to be verbose.} |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 36 | |
Marc Kupietz | d0d3e9b | 2019-09-24 17:36:03 +0200 | [diff] [blame] | 37 | \item{kco}{KorAPConnection object} |
| 38 | |
| 39 | \item{url}{request url} |
| 40 | |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 41 | \item{object}{KorAPConnection object} |
| 42 | } |
| 43 | \value{ |
| 44 | \code{\link{KorAPConnection}} object that can be used e.g. with \code{\link{corpusQuery}} |
| 45 | } |
| 46 | \description{ |
Marc Kupietz | 7776dec | 2019-09-27 16:59:02 +0200 | [diff] [blame] | 47 | \code{KorAPConnection} objects represent the connection to a KorAP server. |
| 48 | New \code{KorAPConnection} objects can be created by \code{KorAPConnection()}. |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 49 | } |
| 50 | \note{ |
| 51 | Currently it is not possible to authenticate the client |
| 52 | } |
| 53 | \examples{ |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 54 | kcon <- new("KorAPConnection", verbose = TRUE) |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 55 | kq <- corpusQuery(kcon, "Ameisenplage") |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 56 | kq <- fetchAll(kq) |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 57 | |
| 58 | } |