Thank you for the quick response, Holger.  That did the trick.

Adrian.

On Tuesday, January 10, 2023 at 8:55:59 AM UTC-7 [email protected] 
wrote:

> The built-in property "label" will always have exactly one value, which is 
> the "most suitable" display label for the surrounding resource.
>
> To fetch specific labels, you need to query prefLabel directly, e.g.
>
> {
>   concepts {
>     prefLabel {
>       string
>       lang
>     }
>   }
> }
>
> To return only the en-US labels, use something like
>
> {
>   concepts {
>     prefLabel(lang:"en-US") {
>       string
>       lang
>     }
>   }
> }
>
> HTH
> Holger
>
>
> On 10 Jan 2023, at 3:34 pm, AdrianP <[email protected]> wrote:
>
> Hello...
>
> I'm struggling to find the right GraphQL syntax to request strings 
> specified by localization using the "@en-US" or "@es-US" convention in EDG.
>
> The 'source code' for the data looks like this:
>
>   skos:broader concept_data:VL_00001 ;
>   skos:inScheme concept_data:Some_Scheme ;
>   skos:prefLabel "A House"@en-US ;
>   skos:prefLabel "Una Casa"@es-US ;
>   
> When I request the data like this:
>
> {
>   collectionName(uri: "
> http://metadata.somecorp.org/concept/concept_data#G_1045";) {
>     label
>   }
> }
>
> I get the en-US label:
>
> {
>   "data": {
>     "collectionName": [
>       {
>         "label": "A House"
>       }
>     ]
>   }
> }
>
> But I need to request the es-US label also.  
>
> Is there a syntax convention I'm missing?
>
> Thank you,
>
> Adrian.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/fc002b6d-7764-44c2-92d1-ac6c6202aa9dn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/fc002b6d-7764-44c2-92d1-ac6c6202aa9dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/17590f14-5082-44bd-8191-e47a785f89a2n%40googlegroups.com.

Reply via email to