Specify the acceptable way to have multiple values in different languages

Aperta
#41 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, json

Direzione di ricerca

The issue discusses representing multilingual descriptions in Codemeta JSON and shows an example using @value and @language. Start by reviewing the Codemeta context and how the generator handles description fields. Compare interoperable approaches used by other infrastructures, then propose a format and document how it represents multiple languages.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

If we want to specify for example a description in two or more languages, how should the .json file be formatted?
We need an acceptable way to do so in different infrastructures, in a way that can be interoperable.

A few options/ideas below:
First idea from SWH team:

{
   "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
   "@type" : "SoftwareSourceCode",
   "description": [
     {"@value": "Functionellement, SOFA est...", "@language": "fr"},
     {"@value": "Functionally, SOFA is...", "@language": "en"},
     {"@value": "Scientifiquement, SOFA est...", "@language": "fr"},
     {"@value": "Scientifically, SOFA is...", "@language": "en"}
   ],
   "https://example.org/FunctionalDescription": [
     {"@value": "Functionellement, SOFA est...", "@language": "fr"},
     {"@value": "Functionally, SOFA is...", "@language": "en"}
   ],
   "https://example.org/scientificDescription": [
     {"@value": "Scientifiquement, SOFA est...", "@language": "fr"},
     {"@value": "Scientifically, SOFA is...", "@language": "en"}
],

}

Are there any other infrastructure that are using different languages in codemeta.json files?

Feel free to suggest other options.

Lingua principale
JavaScript
Stelle
23
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codemeta/codemeta-generator

Tutte le issue di codemeta/codemeta-generator

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.