Closed ghost closed 6 years ago
At the Cubiql configuration file use :schema-label-language en
. You can use the any language tag except from en
.
@zeginis Where do I find the documentation on cubiql-config.edn
Here: https://github.com/Swirrl/graphql-qb/blob/master/doc/table2qb-cubiql.md
See at the bottom of page
Is this something from after release 0.4 ?
Is it possible to ask to return labels according to the preferences of and from the client?
{cubiql{
datasets {
uri
title <-- language returned based on user choice
dimensions{
uri}
}
}}
@PaulZH - You can specify the language tag to use in the query with lang_preference
e.g.
{cubiql(lang_preference: "fr"){
datasets {
uri
title
dimensions{
uri}
}
}}
@PaulZH is this issue fixed by using the lang_preference
?
For most use cases, yes.
Kind regards,
Paul Hermans ProXML (t) +32 15 23 00 76 (m) paul@proxml.bemailto:paul@proxml.be (w) www.proxml.behttp://www.proxml.be
On 30 Oct 2018, at 17:01, zeginis notifications@github.com<mailto:notifications@github.com> wrote:
@PaulZHhttps://github.com/PaulZH is this issue fixed by using the lang_preference ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Swirrl/cubiql/issues/154#issuecomment-434359163, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAauFWOnAocjapvCwe_AJvUJZPWO8Sckks5uqHfVgaJpZM4XwUma.
This is fixed.
When the CubiQL endpoint connects to the SPARQL endpoint, it seems to fire following SPARQL query.
which in our case doesn't return anything, since in our case label values have a language attached.
I don't see this constraint anywhere documented.