% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wosis-cache.R
\name{load_wosis_sample}
\alias{load_wosis_sample}
\title{Load the bundled WoSIS South-America sample}
\usage{
load_wosis_sample()
}
\value{
A list as described above.
}
\description{
Returns a 40-profile snapshot of WoSIS GraphQL data pulled on
2026-05-03 with \code{continent = "South America"}. The data is a
frozen artefact -- do NOT use it for current paper-grade
benchmarks (the WoSIS database is updated periodically; the bundled
snapshot is for reproducible tests and offline development only).
}
\details{
For up-to-date benchmarks, call \code{run_wosis_benchmark_graphql()}
directly against the live ISRIC GraphQL endpoint.
}
\section{Returned data}{

A list with elements:
\itemize{
  \item \code{profiles_raw} -- the parsed GraphQL response (one
        element per profile; nested layer arrays).
  \item \code{pedons} -- \code{PedonRecord} objects ready for
        classification (one per profile).
  \item \code{pulled_on} -- \code{Date} of the snapshot.
  \item \code{endpoint}, \code{filter}, \code{n_pulled} -- metadata.
}
}

\examples{
\donttest{
sample <- try(load_wosis_sample(), silent = TRUE)
if (!inherits(sample, "try-error")) {
  length(sample$pedons)
  classify_wrb2022(sample$pedons[[1]])$rsg_or_order
}
}
}
