glossarist / glossarist-ruby

Concept modeller in Ruby
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Unifying document refs (related concepts and authoritative sources) #10

Open skalee opened 3 years ago

skalee commented 3 years ago

Consider this YAML excerpt:

---
termid: 112-01-11
term: dimension of a quantity
related:
- type: supersedes
  ref:
    source: IEV
    id: 112-01-11
    version: 2010-01
fra:
  authoritative_source:
  - ref: ISO/IEC Guide 99:2007
    clause: '1.7'
    link: https://www.iso.org/standard/45324.html
    relationship:
      type: modified
      modification: Ajout d'une utilisation spécifique du terme privilégié, ajout
        de renvois dans la définition et la note 4, transfert des exemples 1 et 2
        dans la Note 5 à l'article et ajout d'un nouvel exemple, transfert de l'exemple
        3 dans une nouvelle Note 6 à l'article
    original: ISO/IEC Guide 99:2007, 1.7, modifié – Ajout d'une utilisation spécifique
      du terme privilégié, ajout de renvois dans la définition et la note 4, transfert
      des exemples 1 et 2 dans la Note 5 à l'article et ajout d'un nouvel exemple,
      transfert de l'exemple 3 dans une nouvelle Note 6 à l'article

It refers two documents:

  1. {source: IEV, id: 112-01-11, version: 2010-01} (supersession)
  2. ISO/IEC Guide 99:2007 (authoritative source for French translation)

One is structured and another one is plain text. Questions:

  1. Is it possible to have structured ref in authoritative source?
  2. Is it possible to have plain text ref in related concepts?
  3. Or maybe these are very different kinds of refs and I should keep clear distinction between them (different model classes with different attributes)?
  4. Shouldn't clause, link, or original be attributes of structured ref? Or maybe ref should represent document name only, without clause or link (which potentially may depend on clause)?

cc @ronaldtse

ronaldtse commented 3 years ago
  1. Is it possible to have structured ref in authoritative source?

Yes.

  1. Is it possible to have plain text ref in related concepts?

Yes.

  1. Or maybe these are very different kinds of refs and I should keep clear distinction between them (different model classes with different attributes)?

Yes they are different refs that should be kept separately.

  1. Shouldn't clause, link, or original be attributes of structured ref?

Yes.

Or maybe ref should represent document name only, without clause or link (which potentially may depend on clause)?

There are at least the following two kinds of unstructured refs:

  1. One that only contains the title
  2. One that contains the title + attributes

Both can be represented as structured refs.

HassanAkbar commented 1 year ago

@ronaldtse Is this completed or is there something that I need to add here?

ronaldtse commented 1 year ago

@HassanAkbar this is not implemented yet.

ronaldtse commented 1 year ago

@HassanAkbar can we action this ticket? Thanks.

HassanAkbar commented 1 year ago

@ronaldtse This was a question so I'm not sure what needs to be implemented here. Can you explain what needs to be done in this ticket?