this time I would like to ask about another problem/ challenge that I am facing.
I want to be able to merge the values of multiple variables into one. To make it more clear I want to do something like
?b + .... the problem however is that the bindings are URIS and not numbers.
?subject_1 Some_predicate ?object_1
blah blah blah...
?subject_n Some_predicate ?object_n
Till now I am doing this trick with
COALESCE function. I know that this function was not meant for it, however there are times that works perfectly and when for example I write:
BIND(COALESCE(?object_1, ?object_2) AS ?object_total) then I am find in
?object_total all the binds that the other two variables made. However this doesn't work always.
I made a very small but crucial mistake on the title, the correct title should be:
How to merge values of different variables into one VARIABLE?
So I am not looking to concatenate multiple values together. What I am looking for is the following:
?object_1 has inside it: URI_1, URI_2, URI_3
?object_2 has inside it: URI_4, URI_5, URI_3
?object_3 has inside it: URI_6, URI_5, URI_7
I want a new created variable that is a distinct union of the three upper variables and has inside it:
?object_all: URI_1, URI_2, URI_3, URI_4, URI_5, URI_6, URI_7
13 Nov '12, 17:00