GeoKnow / Jassa

JAvascript Suite for Sparql Access
25 stars 3 forks source link

[FEATURE-REQUEST] jassa.sparql.ElementBindAs #9

Closed leipert closed 10 years ago

leipert commented 10 years ago

It would be nice to have this for arithmetics, for example: For example:

var s = rdf.NodeFactory.createVar("s");
var p = rdf.NodeFactory.createVar("p");
filter = new sparql.ElementBindAs(s + "/ 1000",p);
console.log(filter.toString()); // logs BIND ((?s / 1000) AS ?p )