On 27/01/16 20:35, Bardo Nelgen wrote:

Hi all,

most likely I am missing something here, but maybe I am simply doing it
the wrong way:

I need to match a language-locale value where both language and locale
come from different branches in the data model.

So what I came up with in my FILTER clause is

langMatches(lang(?Headline),(concat(str(?lang),"-",str(?locale))) )

Is it meant to work this way or is the approach doomed by itself ?

Any suggestions very welcome. :-)

Regards,

Bardo


If ?Headline, ?lang and ?locale are right it will work but did you mean the arguments the other way round?

langMatches(lang("word"@EN-uk),(concat("en","-","uk")) ) ==> true

But
langMatches(lang("word"@EN),(concat("en","-","uk")) ) ==> false

The second argument is the language range,

langMatches("en-UK","EN") => true

        Andy

Reply via email to