[209] | 1 | <html>
|
---|
| 2 | <head>
|
---|
| 3 | <!--
|
---|
| 4 | <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
|
---|
| 5 | <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
|
---|
| 6 | -->
|
---|
| 7 | <script src="./jquery-1.11.1.min.js"></script>
|
---|
| 8 | <script src="./d3.v3.min.js" charset="utf-8"></script>
|
---|
| 9 | <script src="./sparqlbuilder.js"></script>
|
---|
[216] | 10 | <script>
|
---|
| 11 | <!--
|
---|
| 12 | function sendSPARQL(){
|
---|
| 13 | var ep = $("*[name=selectendpoint]").val();
|
---|
| 14 |
|
---|
| 15 | if(ep == "input"){
|
---|
| 16 | ep = $("*[name=inputendpoint]").val();
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | var query = $("*[name=sparql]").val();
|
---|
| 20 |
|
---|
| 21 | query = encodeURIComponent(query);
|
---|
| 22 |
|
---|
| 23 | openpage = ep + "?format=text%2Fhtml&query=" + query;
|
---|
| 24 |
|
---|
| 25 | window.open(openpage);
|
---|
| 26 | }
|
---|
| 27 | -->
|
---|
| 28 | </script>
|
---|
[209] | 29 | <link rel="stylesheet" href="./sparqlbuilder.css" type="text/css" />
|
---|
| 30 | </head>
|
---|
| 31 | <body>
|
---|
| 32 | <div>
|
---|
| 33 | <form>
|
---|
| 34 | <input type="button" id="create" value="Start SPARQLBuilder" onclick="new SPARQLBuilder('sparql'); return false;" />
|
---|
| 35 | <br/>
|
---|
[216] | 36 | <textarea id="sparql" name="sparql" cols="60" rows="10"></textarea><br/>
|
---|
| 37 | <input type="button" name="sendsparql" value="Send SPARQL" onClick="sendSPARQL()"><br/>
|
---|
[209] | 38 | </form>
|
---|
| 39 | </div>
|
---|
| 40 | </body>
|
---|
| 41 | </html> |
---|