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} |
| 8 | \alias{show,KorAPConnection-method} |
| 9 | \title{Class KorAPConnection} |
| 10 | \usage{ |
| 11 | \S4method{initialize}{KorAPConnection}(.Object, |
Marc Kupietz | f94a6c8 | 2019-09-19 11:32:07 +0200 | [diff] [blame] | 12 | KorAPUrl = "https://korap.ids-mannheim.de/", apiVersion = "v1.0", |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 13 | apiUrl, verbose = FALSE) |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 14 | |
| 15 | \S4method{show}{KorAPConnection}(object) |
| 16 | } |
| 17 | \arguments{ |
| 18 | \item{.Object}{KorAPConnection object} |
| 19 | |
| 20 | \item{KorAPUrl}{the URL of the KorAP server instance you want to access.} |
| 21 | |
| 22 | \item{apiVersion}{which version of KorAP's API you want to connect to.} |
| 23 | |
| 24 | \item{apiUrl}{URL of the KorAP web service.} |
| 25 | |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 26 | \item{verbose}{logical decides wether following operations will default to be verbose} |
| 27 | |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 28 | \item{object}{KorAPConnection object} |
| 29 | } |
| 30 | \value{ |
| 31 | \code{\link{KorAPConnection}} object that can be used e.g. with \code{\link{corpusQuery}} |
| 32 | } |
| 33 | \description{ |
| 34 | \code{KorAPConnection} objetcs represent the connection to a KorAP server. |
| 35 | New \code{KorAPConnection} objects can be created by \code{KorAPConnection()} |
| 36 | } |
| 37 | \note{ |
| 38 | Currently it is not possible to authenticate the client |
| 39 | } |
| 40 | \examples{ |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 41 | kcon <- new("KorAPConnection", verbose = TRUE) |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 42 | kq <- corpusQuery(kcon, "Ameisenplage") |
Marc Kupietz | 5a51982 | 2019-09-20 21:43:52 +0200 | [diff] [blame] | 43 | kq <- fetchAll(kq) |
Marc Kupietz | e95108e | 2019-09-18 13:23:58 +0200 | [diff] [blame] | 44 | |
| 45 | } |