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

Add (possibility to select) language information #32

Open
acka47 opened this issue Mar 23, 2020 · 3 comments
Open

Add (possibility to select) language information #32

acka47 opened this issue Mar 23, 2020 · 3 comments

Comments

@acka47
Copy link
Member

acka47 commented Mar 23, 2020

It would be nice to add the language of the metadata to the JSON-LD like this:

{
   "@context":[
      "https://dini-ag-kim.github.io/lrmi-profile/draft/schemas/context.jsonld",
      {
         "@language":"de"
      }
   ],
   "name":"Example Resource",
   "...":"..."
}

For supporting this, it might make sense to put the context URL in an array by default.

@acka47
Copy link
Member Author

acka47 commented Mar 23, 2020

In the editor UI, it would be nice to have a dropdown at the top of the web form where the language can be selected.

@acka47
Copy link
Member Author

acka47 commented Sep 24, 2020

With implementing dini-ag-kim/amb#18 the default JSON Schema expects a default language in the context, e.g. {"@language": "de"}.

In the editor, this could be added with a dropdown right over the web form, where you can choose a language. In the JSON, this would then set the default language with the respective language code in the @context.

The relevant part of the JSON schema is https://github.com/dini-ag-kim/lrmi-profile/blob/898c01232dcc39db2d56dea8f3f9e18770c399e8/draft/schemas/schema.json#L12-L35

@literarymachine
Copy link
Contributor

Under the hood, this is strongly related to #54.

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

2 participants