getFormat(); switch ($format) { case "template": $output = new SparqlTemplate($args); break; case "maps": $output = new SparqlMaps($args); break; case "graph": $output = new SparqlGraph($args); break; case "piechart": $output = new SparqlPieChart($args); break; case "barchart": $output = new SparqlBarChart($args); break; case "linechart": $output = new SparqlLineChart($args); break; case "columnchart": $output = new SparqlColumnChart($args); break; case "areachart": $output = new SparqlAreaChart($args); break; case "orgchart": $output = new SparqlOrgChart($args); break; case "scatterchart": $output = new SparqlScatterChart($args); break; case "treemap": $output = new SparqlTreeMap($args); break; case "geomap": $output = new SparqlGeoMap($args); break; case "inline": $output = new SparqlInline($args); break; case "sparkline": $output = new SparqlSparkLine($args); break; case "motion": $output = new SparqlMotionChart($args); break; default: $output = new SparqlTable($args); } return $output->getOutput(); } }