
webapp.flint.sparql.test.runtests.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-server Show documentation
Show all versions of corese-server Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
The newest version!
function runParserTests(mode,tests) {
var node= document.getElementById("output");
var passes=0;
var fails=0;
var state;
var trace='';
var callback= function (string,st) {state=st;};
var html='';
for (var i=0; i";
if (tests[i].expected)
report+="+ ";
else
report+="- ";
if (pass) {
report+='Passed ';
++passes;
} else {
report+='Failed ';
++fails;
}
report+=""+tests[i].comment+" ";
html+=""+report+" ";
}
html+="
";
html=passes+" passed
"+fails+" failed"+html;
node.innerHTML=html;
function runTest(query,expected) {
CodeMirror.runMode( query,
mode,
callback
);
var stack=state.stack, len=state.stack.length;
var queryValid=true;
trace+=state.complete;
for (var i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy