Published

Classification of the Functions of Government

154
92

Classification of the Functions of Government (COFOG) is a classification defined by the United Nations Statistics Division. Its purpose is to "classify the purpose of transactions such as outlays on final consumption expenditure, intermediate consumption, gross capital formation and capital and current transfers, by general government" (from home page).

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/core/cofog/
https://datahub.io/core/cofog/_r/-/Makefile
https://datahub.io/core/cofog/_r/-/README.md
https://datahub.io/core/cofog/_r/-/archive/cofog_english.csv
https://datahub.io/core/cofog/_r/-/archive/cofog_extended_notes.csv
https://datahub.io/core/cofog/_r/-/archive/cofog_french.csv
https://datahub.io/core/cofog/_r/-/archive/cofog_spanish.csv
https://datahub.io/core/cofog/_r/-/data/cofog.csv
https://datahub.io/core/cofog/_r/-/datapackage.json
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.jsonmetadata & schema
https://datahub.io/core/cofog/_r/-/datapackage.json
README.mddocumentation
https://datahub.io/core/cofog/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.json to inspect schema and resources
  2. 2. Download data resources listed in datapackage.json
  3. 3. Read README.md for full context

Data Previews

cofog

Loading data...

Schema

nametype
Codestring
DescriptionENstring
DescriptionFRstring
DescriptionESstring
ExplanatoryNotestring

Data Files

FileDescriptionSizeLast modifiedDownload
cofog
104 kB28 days ago
cofog
FilesSizeFormatCreatedUpdatedLicenseSource
1104 kB12 months agoOpen Data Commons Public Domain Dedication and License v1.0United Nations

badge

Classification of the Functions of Government (COFOG) is a classification defined by the United Nations Statistics Division. Its purpose is to "classify the purpose of transactions such as outlays on final consumption expenditure, intermediate consumption, gross capital formation and capital and current transfers, by general government" (from home page).

These functions are designed to be general enough to apply to the government of different countries. The accounts of each country in the United Nations are presented under these categories. The value of this is that the accounts of different countries can be compared.

Preparation

To prepare and process the COFOG data, follow these steps:

# Clone the repository
git clone https://github.com/datasets/cofog.git
cd cofog

# Run make to process everything
make all

This will:

  1. Install required dependencies
  2. Download and process explanatory notes
  3. Extract descriptions in multiple languages
  4. Merge all data into a single CSV file

The final merged dataset will be available at data/cofog.csv.

Data

Data was sourced from the UN site (raw access database from the UN) and extracted using the scripts found in the scripts directory of the source data package. In addition to the UN site, versions of COFOG can also be found on Eurostat with one advantage of the Eurostat data being the availability of additional languages (e.g. German).

License

No license specified but factual data and extraction and normalization of the csv file has been done by the Maintainer who places the material in the Public Domain under the PDDL.