Skip to content

relaton/relaton-data-jcgm

Repository files navigation

JCGM publications bibliographic data for Relaton-JCGM

This repository is used by Relaton (the Relaton::Jcgm flavor) to represent known JCGM publications. Data is stored in Relaton YAML format.

JCGM records were previously served inside the BIPM flavor (under relaton-data-bipm); they now live here as their own flavor, indexed with Pubid::Jcgm identifiers.

Contents

data/jcgm/meeting/

JCGM committee meeting proceedings, generated from https://github.com/metanorma/bipm-data-outcomes (the jcgm/meetings-en and jcgm/meetings-fr directories).

static/jcgm/

Curated JCGM guide / GUM / VIM records (hand-maintained).

index-v1.yaml / index-v1.zip

The document index. Every row is a Pubid::Jcgm::Identifier hash (_type: pubid:jcgm:*), serialized in the compact flattened shape (number: '100', year: '2008' as bare scalars; the publisher/type/stage are reconstructed from _type on load). Relaton::Jcgm::Bibliography downloads index-v1.zip. Unlike some sibling flavors (which keep a flat string index in index-v1 and a structured pubid index in index-v2), this flavor stores the structured pubid index directly in index-v1 — there is no v2.

Rebuilding

bundle install
bundle exec ruby crawler.rb

crawler.rb clones metanorma/bipm-data-outcomes (or reuses a local bipm-data-outcomes symlink), regenerates data/ (the meetings), indexes each curated static/ guide through the gem’s guarded add_to_index, and writes index-v1.yaml + index-v1.zip. The index holds 27 rows: 16 meetings + 11 guides (9 guide, 1 GUM guide, 1 corrigendum).

Dependency pins

The Gemfile tracks both relaton and pubid from their GitHub main branches via git: refs, because the dataset depends on changes not yet on a released gem:

  • relatonmain, which provides the Relaton::Jcgm flavor (DataFetcher / Bibliography).

  • pubidmain, which provides the flattened Pubid::Jcgm to_hash/from_hash the index is serialized with, plus the bare GUM/VIM-N guide and Corrigendum parsing.

Swap both to rubygems references once released. psych is pinned to ~> 5.2.6 because 5.3.0 silently breaks the YAML round-trip the index relies on.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages