On 2 May 2011, at 21:28, Deepak Konidena wrote: > Hi,
Hi Deepak, > LET (?ALLTEXT := fn:concat(?k, " ", ?l )) . > LET (?ALLTEXT := afn:strJoin(?k, " ", ?l )) > } > > > The variable ALLTEXT gets populated only when both ?k and ?l are not empty. > When one > Of them is empty, ALLTEXT is showing an empty result. COALESCE [1] seems like you best bet: LET (?ALLTEXT := COALESCE(fn:concat(?k, " ", ?l ), ?k, ?l, "")) but no doubt there are cunning alternatives I'm missing. Damian [1] <http://www.w3.org/TR/sparql11-query/#func-coalesce>
