Skip to main content

Creating taxonomy support files

Use the following commands to create the necessary taxonomy files for the template generator.

An example of the command to be used in MacOS is listed below, replace /Applications/Arelle.app/contents/MacOS/arelleCmdLine with command for your operating system.

PlatformCommand
Python source codepython arelleCmdLine.py
Windows x64 or 32 bit"c:\Program Files\arelleCmdLine.exe"
MacOS App/Applications/Arelle.app/contents/MacOS/arelleCmdLine
Linux/Unix./arelleCmdLine

Example for MacOS, vkt2024 taxonomy:

cd [PATH_TO_TI_TAXONOMY_PATH] #/Users/jianing/IdeaProjects/cw-templateinstantiator/taxonomies/nbb/vkt2024/
EXPORT_LANGUAGE="nl-BE"
TAXONOMY_FILE_PATH=/Users/jianing/Downloads/nbb-cbso-25.0.5/www.nbb.be/be/fr/cbso/fws/25.0/mod/m81/m81-f.xsd
/Applications/Arelle.app/contents/MacOS/arelleCmdLine -f $TAXONOMY_FILE_PATH --labelLang=$EXPORT_LANGUAGE --facts=facts.json --dim dimensions.json --formulae=formulae.json --table=table_linkbase.json --pre=presentation.json --concepts=concepts.json --cal=calculations.json

Example for MacOS, vkt2024cap taxonomy:

PATH_TO_TI_TAXONOMY_PATH=/Users/jianing/IdeaProjects/cw-templateinstantiator/taxonomies/nbb/vkt2024cap/
EXPORT_LANGUAGE="nl-BE"
TAXONOMY_FILE_PATH=/Users/jianing/Downloads/nbb-cbso-25.0.5/www.nbb.be/be/fr/cbso/fws/25.0/mod/m01/m01-f.xsd

mkdir -p $PATH_TO_TI_TAXONOMY_PATH
cd $PATH_TO_TI_TAXONOMY_PATH
/Applications/Arelle.app/contents/MacOS/arelleCmdLine -f $TAXONOMY_FILE_PATH --labelLang=$EXPORT_LANGUAGE --facts=facts.json --dim dimensions.json --formulae=formulae.json --table=table_linkbase.json --pre=presentation.json --concepts=concepts.json --cal=calculations.json

Example for MacOS, vol2024 taxonomy:

PATH_TO_TI_TAXONOMY_PATH=/Users/jianing/IdeaProjects/cw-templateinstantiator/taxonomies/nbb/vol2024/
EXPORT_LANGUAGE="nl-BE"
TAXONOMY_FILE_PATH=/Users/jianing/Downloads/nbb-cbso-25.0.5/www.nbb.be/be/fr/cbso/fws/25.0/mod/m82/m82-f.xsd

mkdir -p $PATH_TO_TI_TAXONOMY_PATH
cd $PATH_TO_TI_TAXONOMY_PATH
/Applications/Arelle.app/contents/MacOS/arelleCmdLine -f $TAXONOMY_FILE_PATH --labelLang=$EXPORT_LANGUAGE --facts=facts.json --dim dimensions.json --formulae=formulae.json --table=table_linkbase.json --pre=presentation.json --concepts=concepts.json --cal=calculations.json

Example for MacOS, vol2024cap taxonomy:

PATH_TO_TI_TAXONOMY_PATH=/Users/jianing/IdeaProjects/cw-templateinstantiator/taxonomies/nbb/vol2024cap/
EXPORT_LANGUAGE="nl-BE"
TAXONOMY_FILE_PATH=/Users/jianing/Downloads/nbb-cbso-25.0.5/www.nbb.be/be/fr/cbso/fws/25.0/mod/m02/m02-f.xsd

mkdir -p $PATH_TO_TI_TAXONOMY_PATH
cd $PATH_TO_TI_TAXONOMY_PATH
/Applications/Arelle.app/contents/MacOS/arelleCmdLine -f $TAXONOMY_FILE_PATH --labelLang=$EXPORT_LANGUAGE --facts=facts.json --dim dimensions.json --formulae=formulae.json --table=table_linkbase.json --pre=presentation.json --concepts=concepts.json --cal=calculations.json

For more information regarding Arelle CLI, consult Arelle documentation.