See answer to: (and vote it up!)
http://answers.semanticweb.com/questions/15441/cases-in-sparql-11If you think this is a bad choice of semantics, comment to the SPARQL-WG. I'd support a change -- I wanted substitution semantics AKA a loop of each possible bindings. Current join semantics requires the variable to be used in a triple pattern to be useful.
Andy
On 25/03/12 16:42, Marco Neumann wrote:
hi the following query executes as expect in joseki (joseki-3.4.4) http://www.lotico.com:2020/lotico?query=SELECT+%3FdayName+%3FdayIDCheck%0D%0AWHERE+%7B%0D%0ABIND+%28%3FdayIDCheck+AS+%3FDA%29%0D%0ABIND+%280+AS+%3FDB%29%0D%0AFILTER+%28%3FDB+%3D+%3FDA+%29%0D%0A%7D%0D%0A%0D%0ABINDINGS+%3FdayIDCheck+%3FdayName+%7B%0D%0A++++%280+%22Sunday%22%40en%29%0D%0A++++%281+%22Monday%22%40en%29%0D%0A++++%282+%22Tuesday%22%40en%29%0D%0A++++%283+%22Wednesday%22%40en%29%0D%0A++++%284+%22Thursday%22%40en%29%0D%0A++++%285+%22Friday%22%40en%29%0D%0A++++%286+%22Saturday%22%40en%29%0D%0A%7D&default-graph-uri=&output=xml&stylesheet=%2Fxml-to-html.xsl but doesn't "bind" correctly in fuseki (Fuseki - version 0.2.2-incubating-SNAPSHOT (Build date: 2012-03-22T05:04:16+0000)) http://www.lotico.com:3030/lotico/query?query=SELECT+%3FdayName+%3FdayIDCheck%0D%0AWHERE+%7B%0D%0ABIND+%28%3FdayIDCheck+AS+%3FDA%29%0D%0ABIND+%280+AS+%3FDB%29%0D%0AFILTER+%28%3FDB+%3D+%3FDA+%29%0D%0A%7D%0D%0A%0D%0ABINDINGS+%3FdayIDCheck+%3FdayName+%7B%0D%0A++++%280+%22Sunday%22%40en%29%0D%0A++++%281+%22Monday%22%40en%29%0D%0A++++%282+%22Tuesday%22%40en%29%0D%0A++++%283+%22Wednesday%22%40en%29%0D%0A++++%284+%22Thursday%22%40en%29%0D%0A++++%285+%22Friday%22%40en%29%0D%0A++++%286+%22Saturday%22%40en%29%0D%0A%7D&output=text&stylesheet=%2Fxml-to-html.xsl
