I am trying to make a sparql query in html. I have this code:
<script type="text/javascript">
document.write("<strong>Hola!</strong>");
var SPARQL_ENDPOINT = 'http://datos.zaragoza.es/sparql';
var query = 'PREFIX pproc: <http://contsem.unizar.es/def/sector-publico/pproc#>\
PREFIX dcterms: <http://purl.org/dc/terms/>\
SELECT DISTINCT ?uri ?titulo ?servicioGestor WHERE {\
?uri a <http://contsem.unizar.es/def/sector-publico/pproc#Contract>;\
dcterms:title ?titulo;\
pproc:managingDepartment ?managingDepartment.\
?managingDepartment dcterms:title ?servicioGestor} ORDER BY ?titulo';
And now I have to complete it so I can see the results of the query when I open the file in a the browser.