lib/main/js_sparql.js
function(s_query) {

			// execute function
			var f_exec = function(f_okay) {
				submit_query(s_query, f_okay);
			};

			var d_self = {
				exec: f_exec,
				results: function(f_okay) {
					f_exec(function(h_res) {
						f_okay && f_okay(h_res.results.bindings);
					});
				},
				each: function(f_each, f_okay) {
					f_exec(function(h_res) {
						if(!f_each) return;
						var a_rows = h_res.results.bindings;
						for(var i=0,l=a_rows.length; i<l; i++) {
							var h_row = a_rows[i];
							var h_this = {};
							for(var e in h_row) h_this[e] = h_row[e].value;
							f_each.apply(h_this, [i, h_row]);
						}
						f_okay && f_okay();
					});
				},
			};

			return d_self;
		}
function(s_query) {

			// execute function
			var f_exec = function(f_okay) {
				submit_query(s_query, f_okay);
			};

			var d_self = {
				exec: f_exec,
				results: function(f_okay) {
					f_exec(function(h_res) {
						f_okay && f_okay(h_res.results.bindings);
					});
				},
				each: function(f_each, f_okay) {
					f_exec(function(h_res) {
						if(!f_each) return;
						var a_rows = h_res.results.bindings;
						for(var i=0,l=a_rows.length; i<l; i++) {
							var h_row = a_rows[i];
							var h_this = {};
							for(var e in h_row) h_this[e] = h_row[e].value;
							f_each.apply(h_this, [i, h_row]);
						}
						f_okay && f_okay();
					});
				},
			};

			return d_self;
		}
function ( s_query ) { // execute function var f_exec = function ( f_okay ) { submit_query ( s_query , f_okay ) ; } ; var d_self = { exec : f_exec , results : function ( f_okay ) { f_exec ( function ( h_res ) { f_okay && f_okay ( h_res . results . bindings ) ; } ) ; } , each : function ( f_each , f_okay ) { f_exec ( function ( h_res ) { if ( ! f_each ) return ; var a_rows = h_res . results . bindings ; for ( var i = 0 , l = a_rows . length ; i < l ; i ++ ) { var h_row = a_rows [ i ] ; var h_this = { } ; for ( var e in h_row ) h_this [ e ] = h_row [ e ] . value ; f_each . apply ( h_this , [ i , h_row ] ) ; } f_okay && f_okay ( ) ; } ) ; } , } ; return d_self ; }
executes raw sparql query from string
executes raw sparql query from string