Closed pvretano closed 3 years ago
JOINT OGC OSGEO ASF Sprint 2021: @pvgenuchten @kalxas & @pvretano discussed language handling in records. The basic question is how does one get records (i.e. tiles, description, etc.) in a specific language. These were the points discussed:
Example:
{
"id": "id73",
"type": "Feature",
"geometry": { ... },
"properties": { ... },
"links": [
{
"title": "JSON Έγγραφο στα ελληνικά",
"href": "http://www.someserver.com/ogcapi/mycat/items/10?lang=el&f=json",
"rel": "related",
"type": "application/geo+json",
"hreflang": "el"
},
{
"title": "JSON Document en grec",
"href": "http://www.someserver.com/ogcapi/mycat/items/10?lang=fr&f=json",
"rel": "related",
"type": "application/geo+json",
"hreflang": "fr"
},...
]
}
Final note, there might some use of templated link here too ... to prevent combination explosion.
22-FEB-2021: The general sense of the SWG is that the description above is OK. Multiple language responses (i.e. all langs supported by a server presented all at once) was thought to be out of scope especially given that links to alternate language representations can be included in the links sections. @pvretano may add some informative text to about this in the specification. Also see issue #92 about using OPTIONS to get the list of supported languages.
Added clause to specification describing language negotiation. A language associated with a resource is specified using the language
key/property/field of a records. The language in with the record is presented in a response document is negotiated using the Accept-Languages header. Only one language can be requested at a time.
05-MAY-2020: Verify that the discussion has already been included in the draft and then close.
09-AUG-2021: The language issues are discussed in the specification. That is, resource-specific language is handled by the language parameter. The language in which the record itself is presented in a response is negotiated using standard HTTP methods (i.e. Accept-Language). So, this issue can be closed.
This purpose of this issues is to capture discussion/requirements/etc. for language handling in Records. A starting point can be the language discussion from features which, presumably, will eventually make it into OGC API Common. Please feel free to add discussion/requirements/etc. to this issue.