Hello Farhana This only works in SPARQL v1.1 (not v1.0): http://www.w3.org/TR/sparql11-query/#CreatingValuesWithExpressions
Sincerely, Peter Waher From: Farhana Sarker [mailto:[email protected]] Sent: den 5 oktober 2011 19:26 To: [email protected] Subject: Adding in SPARQL Hello, Could anyone please help me how to add more than one variable (integer) in SPARQL. For example: a=1, 1, 0, 1, 0 ,1 b= 1, 0 ,1, 0,1, 0 c=1, 0, 0, 1, 0 ,1 d= 1, 0 ,0, 0,1, 0 I tried to do add these 4 variables in SPARQL as follows. But they did not work. ?R= ?a+?b+?c+?d ................it does not work. select (sum(?a, ?b, ?c,?d) as ?R) .........it does not work as well. Could you please tell me how to do this. Thanks, Farhana
