Builds the body part of a query.

build_part_body(
  query = NA,
  subject,
  verb,
  object,
  optional = FALSE,
  within_box = c(NA, NA),
  within_distance = c(NA, NA)
)

Arguments

query

a list with elements of the query

subject

an anonymous variable (for instance, and by default, "?subject") or item (for instance "Q456"))

verb

the property (for instance "wdt:P190")

object

an anonymous variable (for instance, and by default, "?object") or item (for instance "Q456"))

optional

whether to make the statement optional (defaults to FALSE)

within_box

if provided, north-west and south-east coordinates of bounding box for the triplet query.

within_distance

if provided, north-west and south-east coordinates of bounding box for the triplet query.

Examples

recitR::build_part_body(query=NA,subject="?city",verb="wdt:P625",object="?coords", within_box=list(c(-125,35),c(-120,30)))
#> Error: 'build_part_body' n'est pas un objet exporté depuis 'namespace:recitR'