tasks/rdfstore/index.js
function RDFMakeTerm(formula,val, canonicalize) {
	    if (typeof val != 'object') {   
		if (typeof val == 'string')
	            return new N3Parser.Literal(val);
		if (typeof val == 'number')
		    return new N3Parser.Literal(val); // @@ differet types
		if (typeof val == 'boolean')
		    return new N3Parser.Literal(val?"1":"0", undefined, 
					    N3Parser.Symbol.prototype.XSDboolean);
		else if (typeof val == 'number')
	            return new N3Parser.Literal(''+val);   // @@ datatypes
		else if (typeof val == 'undefined')
	            return undefined;
		else    // @@ add converting of dates and numbers
	            throw "Can't make Term from " + val + " of type " + typeof val; 
	    }
	    return val;
	}
function RDFMakeTerm(formula,val, canonicalize) {
	    if (typeof val != 'object') {   
		if (typeof val == 'string')
	            return new N3Parser.Literal(val);
		if (typeof val == 'number')
		    return new N3Parser.Literal(val); // @@ differet types
		if (typeof val == 'boolean')
		    return new N3Parser.Literal(val?"1":"0", undefined, 
					    N3Parser.Symbol.prototype.XSDboolean);
		else if (typeof val == 'number')
	            return new N3Parser.Literal(''+val);   // @@ datatypes
		else if (typeof val == 'undefined')
	            return undefined;
		else    // @@ add converting of dates and numbers
	            throw "Can't make Term from " + val + " of type " + typeof val; 
	    }
	    return val;
	}
function RDFMakeTerm ( formula , val , canonicalize ) { if ( typeof val != 'object' ) { if ( typeof val == 'string' ) return new N3Parser . Literal ( val ) ; if ( typeof val == 'number' ) return new N3Parser . Literal ( val ) ; // @@ differet types if ( typeof val == 'boolean' ) return new N3Parser . Literal ( val ? "1" : "0" , undefined , N3Parser . Symbol . prototype . XSDboolean ) ; else if ( typeof val == 'number' ) return new N3Parser . Literal ( '' + val ) ; // @@ datatypes else if ( typeof val == 'undefined' ) return undefined ; else // @@ add converting of dates and numbers throw "Can't make Term from " + val + " of type " + typeof val ; } return val ; }
On input parameters, convert constants to terms
On input parameters convert constants to terms