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

Specify the acceptable way to have multiple values in different languages #41

Open
moranegg opened this issue Apr 12, 2024 · 0 comments

Comments

@moranegg
Copy link
Collaborator

moranegg commented Apr 12, 2024

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.

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