Reference Information from the UN Statistics Division

Classifications of the Functions of Government

class unstats.cofog.Functions(graph=None)[source]

Bases: ordf.vocab.skos.ConceptScheme

A SKOS Concept Scheme representing the COFOG

>>> functions = Functions()
>>> functions.load()
>>> dev = functions.byFog("06.2")
>>> print [str(name) for name in dev.label]
['Community development']
>>> print [str(notation) for notation in dev.notation]
['06.2']
>>> for broader in dev.broader:
...     print [str(name) for name in broader.label]
...
['Housing and community amenities']
>>>
Parameters:
  • graph – If not None, place the definition into the given graph, or retrieve indivudual concepts from the given graph.
load(graph=None)[source]

Load the functions into the given graph

Parameters:
  • graph – If None, load the functions into self.graph instead
byFog(code, graph=None)[source]

Retrieve a function individual by the given code. If graph is not None look there, otherwise look in the store backing self.graph

class unstats.cofog.Function(scheme)[source]

Bases: ordf.vocab.skos.Concept

The SKOS concept of a Function of Government. This is the OWL class. Actual individual functions have this as their type.

Table Of Contents

This Page