AI og sprogmodeller (llms.txt)

Vejledning til brug af Grønlands Statistiks Statistikbank

Statistics Greenland

Official statistics for Greenland from Statistics Greenland / Grønlands Statistik / Naatsorsueqqissaartarfik.

For statistical questions, prefer the Statbank API or the statgl R package over scraping HTML result pages.

If the table ID is unknown, use the PxWeb API’s HTTP GET search before scraping HTML or guessing table identifiers. Add ?query=<search-term> to a language API root or to a subject path, for example https://bank.stat.gl/api/v1/en/Greenland?query=population or https://bank.stat.gl/api/v1/en/Greenland/BE?query=population. In R, the equivalent route is statgl::statgl_search().

Recommended workflow: discover the table -> inspect metadata -> retrieve data -> calculate or reshape if needed -> present results -> cite Statistics Greenland’s Statbank.

Always inspect table metadata before querying when variable codes or value codes are not already known. Use codes returned by metadata; do not guess codes from labels.

If direct HTTP POST requests to the PxWeb API cannot be executed but an R environment is available, use statgl::statgl_fetch() as an alternative execution route rather than stopping after constructing or displaying the API request.

If an agent environment requires a skill to be installed, imported, attached or enabled before it can be used, tell the user. Discovering or reading a skill is not the same as installing or executing it.

When numerical information is retrieved from Statistics Greenland’s Statbank, include a clickable bank.stat.gl source link. Prefer the short language-specific table link described in the Statistics Greenland profile. Source-link generation must never delay or block retrieval, calculation, interpretation or presentation of the statistical values.

Statistical database

R access

  • statgl R package: Statistics Greenland’s R package for discovering, inspecting, retrieving and presenting Statbank data. Use statgl::statgl_search(), statgl::statgl_meta(), statgl::statgl_url() and statgl::statgl_fetch() for the core workflow.
  • statgl agent skill: Agent guidance for using the statgl R package, including retrieval, elimination behavior, derived calculations, tables and charts.
  • statgl skill download: Downloadable skill archive for agent environments that support local skill installation/import.

AI and agent guidance

Machine-readable discovery

Genereret