Add example for querying metadata of text within a vc
Change-Id: If2cd08c87374dff690e24ee4498e640fe2e3a2b8
diff --git a/man/KorAPQuery-class.Rd b/man/KorAPQuery-class.Rd
index 1bfa9ce..b4c8e87 100644
--- a/man/KorAPQuery-class.Rd
+++ b/man/KorAPQuery-class.Rd
@@ -227,11 +227,26 @@
}
\dontrun{
-
-q <- KorAPConnection() \%>\%
- corpusQuery("Ameisenplage") \%>\%
+# Fetch all metadata of every query hit for "Ameisenplage" and show a summary
+q <- KorAPConnection() |>
+ corpusQuery("Ameisenplage") |>
fetchAll()
q@collectedMatches
+
+# Fetch also all KWICs
+q <- KorAPConnection() |> auth() |>
+ corpusQuery("Ameisenplage", metadataOnly = FALSE) |>
+ fetchAll()
+q@collectedMatches
+
+# Retrieve title and text sigle metadata of all texts published on 1958-03-12
+q <- KorAPConnection() |>
+ corpusQuery("<base/s=t>", # this matches each text once
+ vc = "pubDate in 1958-03-12",
+ fields = c("textSigle", "title"),
+) |>
+ fetchAll()
+q@collectedMatches
}
\dontrun{