Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize information from the IHO Hydrographic Dictionary #1

Open
ronaldtse opened this issue Jul 12, 2024 · 1 comment
Open

Synchronize information from the IHO Hydrographic Dictionary #1

ronaldtse opened this issue Jul 12, 2024 · 1 comment

Comments

@ronaldtse
Copy link
Member

ronaldtse commented Jul 12, 2024

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant