aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/sparql/index.html
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-20 11:14:44 -0800
committerNivesh Rajbhandari2012-02-20 11:14:44 -0800
commitabf78e2d7a97d295ce5a1c425fd359d47379137e (patch)
treed08c91bd2aef31e6325e0b499b2ffc390018bec6 /imports/codemirror/mode/sparql/index.html
parente80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff)
parente23708721a71ca4c71365f5f8e8ac7d6113926db (diff)
downloadninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'imports/codemirror/mode/sparql/index.html')
-rwxr-xr-ximports/codemirror/mode/sparql/index.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/imports/codemirror/mode/sparql/index.html b/imports/codemirror/mode/sparql/index.html
new file mode 100755
index 00000000..d7772f6b
--- /dev/null
+++ b/imports/codemirror/mode/sparql/index.html
@@ -0,0 +1,40 @@
1<!doctype html>
2<html>
3 <head>
4 <title>CodeMirror: SPARQL mode</title>
5 <link rel="stylesheet" href="../../lib/codemirror.css">
6 <script src="../../lib/codemirror.js"></script>
7 <script src="sparql.js"></script>
8 <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
9 <link rel="stylesheet" href="../../doc/docs.css">
10 </head>
11 <body>
12 <h1>CodeMirror: SPARQL mode</h1>
13 <form><textarea id="code" name="code">
14PREFIX a: &lt;http://www.w3.org/2000/10/annotation-ns#>
15PREFIX dc: &lt;http://purl.org/dc/elements/1.1/>
16PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/>
17
18# Comment!
19
20SELECT ?given ?family
21WHERE {
22 ?annot a:annotates &lt;http://www.w3.org/TR/rdf-sparql-query/> .
23 ?annot dc:creator ?c .
24 OPTIONAL {?c foaf:given ?given ;
25 foaf:family ?family } .
26 FILTER isBlank(?c)
27}
28</textarea></form>
29 <script>
30 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
31 mode: "application/x-sparql-query",
32 tabMode: "indent",
33 matchBrackets: true
34 });
35 </script>
36
37 <p><strong>MIME types defined:</strong> <code>application/x-sparql-query</code>.</p>
38
39 </body>
40</html>