Support (input of) translations #359
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/concepts#359
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ATM this is not easily doable. This could be framed as being able to provide "contextual overrides" of attribute values. For a translation, the context would be a language. But a non-language-translation use case would be a tuning values for a different target audience, maybe in terms of tagging some information as being "classified".
I see two general approaches:
language:de)descriptionandalt_descriptionthat differ in therange. One is astringthe other a class (maybeI18NString) that bind that context identifier to thestringvalue.For (1) a YAML example might look like this
but individual properties may be multivalued, and that is complicated to declare for the purpose of validation.
An example for (2) might be
But it is not immediately intuitive to me how multiple translation for multiple values in a multivalued slot would need to be declared in terms of a
rangespecification (use case: translated keywords)Second round of thinking about this: I believe the approach with
I18NStringmight be one that works....We only need I18N for
stringvalues. So wheneverrangeisstring, it could be changed toI18NString. This would be a class that maps a language identifier (vialanguage:...defined as ingithub.com/linkml/prefixmaps@ae04eb1b95/src/prefixmaps/data/prefixcc.csv (L1411)) to the internationalized variant of thestring.However, this would complicate the UX in shacl-vue quite a bit, because it forced I18N upon everyone for everything.
However, it is the "same" issue as with intermediate association classes (see https://github.com/psychoinformatics-de/shacl-vue/issues/256). So if we could have the editor "jump" over the
I18NStringin terms of UX and immediately create it, populated with a default languagestring, it might just work out good-enough.So in terms of a data model, a record could look like this:
I think it would make sense to introduce a
I18NStringto thetypesschema component.I used the TRR379-ra schema and created a local test case for the work on the
AssociationClassEditorinshacl-vue:This generates SHACL:
It also produces OWL, but with the following warning:
Running the owl export command with the verbose flag doesn't expand on this.
When using the updated shacl to drive a local
shacl-vueinstance (updated to the state described here: https://github.com/psychoinformatics-de/shacl-vue/issues/256#issuecomment-3601772381), this all worked nicely:https://github.com/user-attachments/assets/6dced5a6-255c-4345-8c8f-a64fd5c3011a
Some configuration functionality will come next, to allow a default language to be set for a deployment.