Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

6 watching

Forks

Repository files navigation

ITU Service Publications Documents

This repository contains ITU Operational Bulletin Service Publications documents.

Build

Published components are available here:

General

This repository contains ITU Operational Bulletin (OB) Service Publications documents. These documents are published by the ITU and provide important operational information for telecommunication services.

Structure

metanorma.yml

The site configuration for the Metanorma site. This file defines the site’s title, description, and the documents that are published.

datasets.yml

This file describes all validated datasets stored in this repository.

datasets/

This directory contains the datasets used in the ITU Service Publications documents. The datasets are organized in folders with a numbering scheme corresponding to the OB issue number, followed by the document identifier

The dataset 1154-RR.25.1 was created at OB Issue 1154 as an Annex and is defined by the ITU standard "RR.25.1"

1109-Q.708B, 1161-E.118 are other examples.

documents/

This directory contains the source documents for the ITU Service Publications. Each document is organized in its own directory, named after the document identifier

T-SP-X.121B-2011

_site/

(automatically generated after processing) Published documents.

Working with documents

The Service Publications documents are available in multiple languages, typically:

  • English (E)

  • French (F)

  • Spanish (S)

  • Arabic (A)

  • Chinese ©

  • Russian ®

The documents follow a naming convention of T-SP-{identifier}-{year}-{language}.adoc.

T-SP-Q.708B-2016-E.adoc is the English version of the Q.708B Service Publication from 2016.

ITU OB datasets

General

The ITU Operational Bulletin datasets are stored in the datasets/ directory.

These datasets are used to populate the content of the ITU Service Publications documents.

Structure

Each dataset in the datasets/ directory follows a specific structure:

datasets/{dataset-dir}/metadata.yaml

A metadata file that conforms to the root datasets/schema-metadata.yaml schema. This file contains metadata about the dataset.

datasets/{dataset-dir}/data.yaml or datasets/{dataset-dir}/data/*.yaml

One or more YAML files containing the actual data entries for the dataset. These files must conform to the schema defined in datasets/{dataset-dir}/schema-data.yaml.

datasets/{dataset-dir}/schema-data.yaml

A YAML schema file that defines the structure and validation rules for the data files in this dataset.

Example 1. Structure of the 977-X.121B dataset

This dataset keeps all data instances within a single file data.yaml.

datasets/
└── 977-X.121B/
    ├── data.yaml
    ├── metadata.yaml
    └── schema-data.yaml
Example 2. Structure of the 1154-RR.25.1 dataset

This dataset keeps independent entries of data in separate files within the data/ directory.

datasets/
└── 1154-RR.25.1/
    ├── metadata.yaml
    ├── schema-data.yaml
    └── data/
        ├── colombia.yaml
        └── comoros.yaml

Metadata file

Each dataset must have a metadata.yaml file that contains metadata about the dataset. This file must conform to the schema defined in datasets/schema-metadata.yaml.

Specifically, the metadata file must include the following properties:

title

The title of the dataset. The title is given as an object that contains the minimum languages of en:, fr: and es:. Metanorma site.

locale

Defined multilingual strings use in the dataset for data presentation. This is an optional array.

Each item in the array has the following properties: key::: A user-defined key of the locale string. en/fr/es/ar/zh/ru::: The locale string in the respective language. At least en:, fr: and es: are required.

Each metadata file must start with this line:

# yaml-language-server: $schema=../schema-metadata.yaml
---
# data ...

Data file

Each dataset must have a data.yaml file or a data/ directory containing multiple YAML files. These files must conform to the schema defined in datasets/{dataset-dir}/schema-data.yaml.

Each data file (whether a collection or a single file) must start either line:

Single data file
# yaml-language-server: $schema=schema-data.yaml
Split data files
# yaml-language-server: $schema=../schema-data.yaml

Data schema file

Each dataset must have a schema-data.yaml file that defines the structure and validation rules for the data files in this dataset.

The data schema file is a YAML Schema file.

The data schema file must start with this line:

# yaml-language-server: $schema=http://json-schema.org/draft-07/schema#

The data schema file must at least have the following properties:

$schema

The schema version. This must be set to http://json-schema.org/draft-07/schema#.

$id

The unique identifier for the schema. This should be a URL that identifies the schema.

title

The title of the schema. This should be a human-readable title for the schema.

description

A human-readable description of the schema.

Dataset change object

The dataset change object defines a uniform format for representing changes to datasets across all ITU OB publications. This format allows for consistent tracking, implementation, and auditing of changes to dataset content.

Change types

The following change types are supported:

ADD

Insert new data into a dataset.

REP

Replace existing data in a dataset.

SUP

Mark data as superseded (typically without removing it).

Format specification

Each change object is a YAML document with the following structure:

# Core change metadata
type: "ADD" | "REP" | "SUP"  # Required: The change operation type
date_requested: "2025-05-06T20:00:00Z"  # Required: When the change was requested (ISO 8601)
date_active: "2025-06-01T00:00:00Z"  # Required: When the change became active (ISO 8601)
ob_issue_no: "1500"  # Required: The OB Issue number where the change became active
reference: "OB-1234"  # Required: Reference to authorizing document (e.g., OB issue number)
description:  # Optional: Human-readable description of the change
  en: "Addition of new country code"
  fr: "Ajout d'un nouveau code de pays"
  es: "Adición de nuevo código de país"

# Identifier for the affected record(s)
identifier:  # Required: How to identify the record(s) being changed
  # Direct identifier (implementation may vary by dataset)
  code: "202"  # Example for direct identifier
  # OR query-style identifier
  query:  # Optional: For more complex record identification
    field: "code"
    value: "202"
    operator: "equals"  # Could be "equals", "contains", etc.

# The actual data content
data:  # Required: The dataset-specific data format carrying actual content
  # This contains the dataset-specific schema content
  # For ADD: the new data to insert
  # For REP: the new data to replace existing data
  # For SUP: may contain supplementary information about the supersession

# Supersession information (only for SUP type)
superseded_by:  # Optional: Reference to replacing data (for SUP type)
  reference: "OB-1235"  # Reference to authorizing document for replacement
  identifier:  # Identifier for the replacement data
    code: "203"  # Example identifier of replacement

Usage examples

Example 3. Adding a new country code to the X.121A dataset
type: "ADD"
date_requested: "2025-05-06T20:00:00Z"
date_active: "2025-06-01T00:00:00Z"
ob_issue_no: "1500"
reference: "OB-1500"
description:
  en: "Addition of new country code for Example Land"
  fr: "Ajout d'un nouveau code de pays pour Exemple Terre"
  es: "Adición de nuevo código de país para Tierra Ejemplo"
identifier:
  code: "299"
data:
  code: "299"
  zone: "2"
  country_or_area:
    en: "Example Land"
    fr: "Exemple Terre"
    es: "Tierra Ejemplo"
Example 4. Replacing an existing country name in the X.121A dataset
type: "REP"
date_requested: "2025-05-06T20:00:00Z"
date_active: "2025-06-01T00:00:00Z"
ob_issue_no: "1500"
reference: "OB-1500"
description:
  en: "Update of country name for code 255"
  fr: "Mise à jour du nom de pays pour le code 255"
  es: "Actualización del nombre del país para el código 255"
identifier:
  code: "255"
data:
  code: "255"
  zone: "2"
  country_or_area:
    en: "Ukraine (Republic of)"
    fr: "Ukraine (République d')"
    es: "Ucrania (República de)"
Example 5. Marking a data network identification code as superseded
type: "SUP"
date_requested: "2025-05-06T20:00:00Z"
date_active: "2025-06-01T00:00:00Z"
ob_issue_no: "1500"
reference: "OB-1500"
description:
  en: "Network code superseded due to operator merger"
  fr: "Code de réseau remplacé en raison de la fusion d'opérateurs"
  es: "Código de red reemplazado debido a la fusión de operadores"
identifier:
  code: "3110"
data:
  code: "3110"
  effective_date: "2025-06-01"
  notes:
    en: "Service to be migrated to new network code"
    fr: "Service à migrer vers un nouveau code de réseau"
    es: "Servicio a migrar a un nuevo código de red"
superseded_by:
  reference: "OB-1500"
  identifier:
    code: "3111"

ITU OB Service Publications documents

General

The Service Publication documents provide the latest dataset definitions (called the "position") as defined in ongoing issues of the ITU Operational Bulletin.

Each of them are Metanorma documents located in the documents/ directory. A document may use one or more datasets to populate its content.

Each document directory typically represents a specific ITU publication and contains:

T-SP-{identifier}-{year}-{language}.adoc

The main document file in Metanorma AsciiDoc format.

_table.liquid or other template files

Optional template files used for document generation since the target documents are multilingual.

Documents may reference datasets through includes or variables. A single document may use one or more datasets to populate its content.

documents/
└── T-SP-X.121B-2011/
    ├── T-SP-X.121B-2011-MSW-E.adoc
    ├── T-SP-X.121B-2011-MSW-F.adoc
    ├── T-SP-X.121B-2011-MSW-S.adoc
    └── _table.liquid

Dataset validation

General

The repository includes a Ruby gem called ituob that provides tools for working with ITU Operational Bulletin service publications, including YAML schema validation.

Installation

The gem is included in the project’s Gemfile. To use it, simply run:

bundle install

Usage

The ituob gem provides a command-line interface for validating YAML files against their schemas.

Dataset validation

To validate datasets, use the dataset validate command:

bundle exec ituob dataset validate

This command validates all datasets in the repository according to their schema definitions.

Command options

The following options are available for the schema validation command:

  • --file, -f: Validate a specific file

  • --directory, -d: Validate files in a directory

  • --recursive, -r: Recursively validate files in subdirectories

  • --verbose, -v: Show verbose output

Building the site

Local installs

If you use a locally installed Metanorma, for the first time, run:

metanorma site generate --agree-to-terms
Note
This is to install fonts needed by ITU.

Subsequently, just run:

metanorma site generate

Docker

If you don’t want to deal with local dependencies, use the docker version by:

docker run \
  -v "$(pwd)":/metanorma \
  -v "${HOME}/.fontist/fonts":/config/fonts \
  -w /metanorma \
  metanorma/metanorma \
  metanorma site generate --agree-to-terms

Building a single document

Local installs

If you use a locally installed Metanorma, for the first time, run:

metanorma {filename} --agree-to-terms
# e.g., metanorma 1109-Q.708B/T-SP-Q.708B-2016-E.adoc --agree-to-terms
Note
This is to install fonts needed by ITU.

Subsequently, just run:

metanorma {filename}
# e.g., metanorma 1109-Q.708B/T-SP-Q.708B-2016-E.adoc

Development installs

If you are using the development version of Metanorma, the bundle command is required for creating an isolated context for the Metanorma development environment.

A Gemfile is provided in the repository to set the context.

These steps are necessary to ensure that the correct version of Metanorma is used to build the documents.

  1. Prior to any metanorma command, please run bundle install to install the dependencies. This is a one-time operation.

  2. Run bundle update (once in a while) to update the dependencies to the latest versions.

  3. Please prefix all commands to metanorma with bundle exec. i.e., use bundle exec metanorma instead of metanorma.

To build a document using a development install, run bundle exec metanorma 1109-Q.708B/T-SP-Q.708B-2016-E.adoc.

Docker

If you don’t want to deal with local dependencies, use the docker version by:

docker run \
  -v "$(pwd)":/metanorma \
  -v "${HOME}/.fontist/fonts":/config/fonts \
  -w /metanorma \
  metanorma/metanorma \
  metanorma {filename} --agree-to-terms
# e.g., metanorma 1109-Q.708B/T-SP-Q.708B-2016-E.adoc --agree-to-terms
Note
The --agree-to-terms flag is needed if the font cache ("${HOME}/.fontist/fonts") is not present.

Installing build tools

License

Content from ITU is copyright to ITU.

All other code and content, copyright Ribose. All rights reserved.

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages