geolexica / ihohd-concepts

Concepts of IHO S-32: IHO Hydrographic Dictionary
0 stars 0 forks source link

Synchronize information from the IHO Hydrographic Dictionary #1

Open ronaldtse opened 1 month ago

ronaldtse commented 1 month ago

The IHO Hydrographic Dictionary is located at:

There are the following full dictionaries available in CSV:

We need a Ruby script that parses these CSV files together, and then use the Glossarist gem to output the following:

  1. Language-independent concept under folder concept/

Like this: https://github.com/geolexica/isotc211-glossary/blob/main/geolexica/concept/00061441-c9f2-5dd8-b28b-20dd94ad5ebf.yaml

---
data:
  identifier: '699'
  localized_concepts:
    eng: f97c8700-4637-5d81-875d-4db604cf319b
    zho: 35c58b51-65f8-5c5e-8532-6815bca8df77
    fra: 8be1a092-18e9-56a3-b6c8-aa82611b9d4f
    ind: 79a75268-80ad-58bb-875b-7d0d1f2aab0c
    spa: e800bb84-7e77-56fe-9963-1d049e8553b1
dateAccepted: 2007-09-01 00:00:00.000000000 +05:00
id: 00061441-c9f2-5dd8-b28b-20dd94ad5ebf
related: []
status: valid
  1. Language-specific concept under folder localized-concept/

Like this:

---
data:
  dates:
  - date: 2007-09-01 00:00:00.000000000 +05:00
    type: accepted
  definition:
  - content: application schema written in UML in accordance with ISO 19109
  examples: []
  id: '699'
  notes: []
  release: 1.0
  sources:
  - origin:
      ref: ISO 19136-1:2020
      clause: 3.1.61
      link: https://www.iso.org/standard/75676.html
    type: authoritative
  - origin:
      ref: ISO 19136:2007
    type: lineage
    status: unspecified
  terms:
  - type: expression
    normative_status: preferred
    designation: UML application schema
  language_code: eng
  entry_status: valid
  review_date: 2020-01-09 00:00:00.000000000 +05:00
  review_decision_date: 2020-01-09 00:00:00.000000000 +05:00
  review_decision_event: Publication of ISO 19136-1:2020(E)
dateAccepted: 2007-09-01 00:00:00.000000000 +05:00
id: f97c8700-4637-5d81-875d-4db604cf319b
status: valid
ronaldtse commented 1 month ago

The code is now done in https://github.com/glossarist/glossarist-agent.