| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<title>SPARQL</title> |
| 6 |
<link rel="stylesheet" type="text/css" href="/css/docs.css"/> |
| 7 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> |
| 8 |
<script src="/js/codemirror.js" type="text/javascript"></script> |
| 9 |
<script type="text/javascript" src="/js/sparql_form.js"></script> |
| 10 |
<style type="text/css"> |
| 11 |
<!-- |
| 12 |
tr:nth-child(odd) { |
| 13 |
background-color: #eeeefa; |
| 14 |
border-bottom: 1px solid #dddde9; |
| 15 |
border-top: 1px solid #dddde9; |
| 16 |
} |
| 17 |
|
| 18 |
th { |
| 19 |
background-color: #ddf; |
| 20 |
border-bottom: 2px solid #000; |
| 21 |
} |
| 22 |
// --> |
| 23 |
</style> |
| 24 |
</head><body> |
| 25 |
<form id="queryform" action="" method="post"> |
| 26 |
<p> |
| 27 |
<textarea id="query" name="query" rows="10" cols="60"> |
| 28 |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> |
| 29 |
SELECT DISTINCT * |
| 30 |
WHERE { |
| 31 |
[] a foaf:Person ; foaf:name ?name |
| 32 |
} |
| 33 |
ORDER BY ?name |
| 34 |
</textarea><br/> |
| 35 |
<select id="media-type" name="media-type"> |
| 36 |
<option value="">Result Format...</option> |
| 37 |
<option label="HTML" value="text/html">HTML</option> |
| 38 |
<option label="Turtle" value="text/turtle">Turtle</option> |
| 39 |
<option label="XML" value="text/xml">XML</option> |
| 40 |
<option label="JSON" value="application/json">JSON</option> |
| 41 |
</select> |
| 42 |
<input name="submit" id="submit" type="submit" value="Submit" /> |
| 43 |
</p> |
| 44 |
</form> |
| 45 |
</body></html> |