blob: 725bb9ca6113e7b18d51398163c29cb6a45635ce [file] [log] [blame]
Marc Kupietzcf1caf42019-09-07 19:19:31 +02001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/KorAPQuery.R
3\name{KorAPQuery}
4\alias{KorAPQuery}
5\title{\code{KorAPQuery} perform a query on the KorAP server.}
6\usage{
7KorAPQuery(con, query = NA, vc = NA, KorAPUrl = NA,
8 metadataOnly = FALSE, ql = "poliqarp", fields = defaultFields)
9}
10\arguments{
11\item{con}{object obtained from \code{\link{KorAPConnection}}, that contains all necessary connection information}
12
13\item{query}{string that contains the corpus query. The query langauge depends on the \code{ql} parameter. Either \code{query} must be provided or \code{KorAPUrl}}
14
15\item{vc}{string describing the virtual corpus in which the query should be performed. An empty string (default) means the whole corpus, as far as it is license-wise accessible.}
16
17\item{KorAPUrl}{instead of providing the query and vc string parameters, you can also simply copy a KorAP query URL from your browser and use it here (and in \code{KorAPConnection}) to provide all necessary information for the query.}
18
19\item{ql}{string to choose the query language}
20
21\item{fields}{(meta)data fields that will be fetch for every matcch}
22
23\item{metaDataOnly}{boolean that determines wether queries should return only metadata without any snippets. This can also be useful to prevent query rewrites.}
24}
25\description{
26\code{KorAPQuery} perform a query on the KorAP server.
27}
28\examples{
29q <- KorAPQuery(con, "Ameisenplage")
30q <- KorAPQuery(KorAPConnection(), "Ameisenplage")
31q <- KorAPQuery(con, KorAPUrl = "https://korap.ids-mannheim.de/?q=Ameise&cq=pubDate+since+2017&ql=poliqarp&cutoff=1")
32
33}
34\references{
35\url{https://ids-pub.bsz-bw.de/frontdoor/index/index/docId/9026}
36}