-
Notifications
You must be signed in to change notification settings - Fork 4
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 support for text type #204
Comments
A suggestion. Maybe we should separate text from string types? Like here:
Here we have a
Also
Here, we know, that Regarding
If we don't know the language or data has mixed languages, then we can read data directly into {"name": {"": "Vilnius"}} Empty language tag does not mean a default language, it means, that language is unknown. When reading or writing, Implicit form: {"name": "Vilnius"} Explicit form: {"name": {"lt": "Vilnius"}} When querying data, for example here:
we use implicit form, since language tag is not specified. When language tag is not specified, we always detect language from:
For example if we write data like this: {"name": "Vilnius"} Then we use language detection described above and set client prefered or system default language. If client prefered {"name": {"en": "Vilnius"}} But if explicif form is given, then we do not do any detection, and used specified language. If specified language is not declared, then we raise an error. If we want to specify an unknown language, we use
Here, we explicily refer to unknown language, which internaly is represented as: {"name": {"": "Vilnius"}} |
In manifest there is a possibility to separate natural language text properties from any other string types.
Specification: https://atviriduomenys.readthedocs.io/dsa/duomenu-tipai.html#tekstiniai-duomenys
text
type should be implemented only onpostgresql
backend.On PostgreSQL
text
type properties should be saves as JSONB objects, like this:Here
""
key will be used, when language code for property is not specified.text
type.name@lang
string and store language code as type parameter.text
types.text
types.Links
The text was updated successfully, but these errors were encountered: