See OpenLink HOWTO guide that showcases the generation of CXML based output from SPARQL queries. This output is then used as input for the Microsoft or HTML5-based PivotViewer.