Closed HassanAkbar closed 1 year ago
@ronaldtse Can you clarify the difference between Ref
and ConceptSource
terms? According to the concept-model, Ref and ConceptSource are 2 different models having different properties but in the current implementation in the iev-data
repo Ref
is being used and it has the properties of both plus some additional properties which are
link
original
clause
So my questions are,
iev-data
the sources
key is saved in the Ref
model but if we separate the keys into different models then how should we handle the incoming payload? E.g
currently, the payload for authoritative sources is like
authoritative_source: {
"ref" => {
"id" => "",
"source" => "",
"version" => ""
},
"clause" => "",
"link" => "",
"relationship" => {
"type" => "",
"modification" => ""
},
"original" => "",
}.compact
but according to the concept-model, this should go into the ConceptSource
model with type = authoritative
but the concept source model does not handle other fields like clause
, link
and ref
.
What do you suggest? how should I handle this? should I change the ConceptSource
model to add the following fields (This will result in duplicate fields in 2 different models)?
You have to look at the big picture model which is Concept. A Concept contains ConceptSources, a ConceptSource contains a <<Bibliography>> Citation
.
ConceptSource is supposed to link to another Concept, so it would have some metadata about what that source concept is. Eg. status, type (authoritative, etc) in addition to a Citation.
Where do you see Ref? Do you mean Citation?
The Citation model in defined in relaton-models. A citation is an information resource typically has a name, link and locality.
Just refer to the concept-models diagrams on the first page, all the definitions are shown there. Description of the models can be found inside the lutaml definitions.
Where do you see Ref?
@ronaldtse The Ref
model is in the current implementation of glossarist. It has some fields that are not present anywhere in the concept-model and those fields are being sent over in the payload from the iev-data
, i.e link
, original
, and clause
.
I just want to confirm should I add those fields to some other model or remove those fields?
You should rename Ref into Citation, and create a new ConceptSource class.
You should rename Ref into Citation, and create a new ConceptSource class.
Sounds good 👍
@HassanAkbar has this been completed? Thanks.
@ronaldtse I think this is completed. Let me just confirm this and then I’ll close this ticket.
Thanks, if so please close it.
Currently
concept
containslocalizedConcepts
but in the modellocalizedConcept
inherits fromconcept
andmanagedConcept
contains the list of all localized concepts.So this ticket is to update the glossarist implementation according to concept-model.