Hi Sanjeev,

search:nestedObjectsList has an extra undocumented fifth argument that 
specifies a language. So you can do something like:

    BIND (search:nestedObjectsList(?result, skos:prefLabel, "result", ?none, 
"en") AS ?preferredlabel) .

This would only return English results. The argument is just a single language 
tag. To get English and French, you could get both separately, and 
string-concatenate the results.

Hope that helps,
Richard


> On 22 Aug 2017, at 11:11, sanjeev devireddy <[email protected]> 
> wrote:
> 
> Hi,
>   The below SPARQL returns preferred labels of all languages available in the 
> vocabulary by default(please check the below SPARQL). When I try FILTER to 
> get only specific languages preferred labels then it doesn't return/place all 
> those resulted preferred labels of a concept in a single row. Could some one 
> please help?
> 
> 
> SPARQL
> 
> SELECT DISTINCT ?result ?label ?latitude ?preferredlabel
> WHERE {
>     GRAPH <urn:x-evn-master:geo> {
>     {
>         ?result a <http://topquadrant.com/ns/examples/geography#Continent> .
>     } .
>     BIND (search:nestedObjectsList(?result, geo:lat, "result") AS ?latitude) .
>     BIND (search:nestedObjectsList(?result, skos:prefLabel, "result") AS 
> ?preferredlabel) .
>     BIND (ui:label(?result) AS ?label) .
>     }
> }
> ORDER BY (LCASE(?label)) 
> 
> 
> 
> FYI..
> 
> <Auto Generated Inline Image 1.png> 
> 
> Using FILTER (FILTER(lang(?preferredlabel) = "en" || lang(?preferredlabel) = 
> "fr"))
> 
> <Auto Generated Inline Image 2.png>
> 
> 
> 
> Thanks,
> sanjeev
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> <Auto Generated Inline Image 1.png><Auto Generated Inline Image 2.png>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to