I am looking for an overview of solutions for Open Source web frameworks which use some HTML template mechanism and creates the content HTML directly from a SPARQL query I define? That is, I want to pass the web framework the SPARQL query and not have to care about creating the HTML GUI stuff for displaying the results. The framework would analyze the SPARQL itself, see how many fields it can expect and create HTML accordingly, allowing me to simply care about the SPARQL itself.
Preferably, the output would be Ajax-using XHTML+RDFa output, but at the moment I would settle for anything. The framework should allow something along the lines of this pseudo code:
sparql = "SELECT WHERE ...";
insert("header");
insert(query(remoteServerURL, sparql));
insert("footer");
The results should be more fancy than a simple table, and preferably even allow me to specify how certain data types should be visualized. For example, a object property of type xsd:date to be automatically converted into a calendar widget?