summaryrefslogtreecommitdiffstats
path: root/media/CodeMirror-0.62/sparqltest.html
diff options
context:
space:
mode:
authorgoatchurch <devnull@localhost>2009-06-28 21:26:35 +0100
committergoatchurch <devnull@localhost>2009-06-28 21:26:35 +0100
commit16b7404d9bc2f9ba264f140310948897689fe3ca (patch)
treecae9ee2d6ea64b7a80602f587ee539f6501ed4d7 /media/CodeMirror-0.62/sparqltest.html
parentdb5e315db022cd253a9f7224637228bf62449ec6 (diff)
downloadtroggle-16b7404d9bc2f9ba264f140310948897689fe3ca.tar.gz
troggle-16b7404d9bc2f9ba264f140310948897689fe3ca.tar.bz2
troggle-16b7404d9bc2f9ba264f140310948897689fe3ca.zip
[svn] horrid .svns copied accidentally
Diffstat (limited to 'media/CodeMirror-0.62/sparqltest.html')
-rw-r--r--media/CodeMirror-0.62/sparqltest.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/media/CodeMirror-0.62/sparqltest.html b/media/CodeMirror-0.62/sparqltest.html
new file mode 100644
index 0000000..5d65c93
--- /dev/null
+++ b/media/CodeMirror-0.62/sparqltest.html
@@ -0,0 +1,41 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <script src="js/codemirror.js" type="text/javascript"></script>
+ <title>CodeMirror: Sparql demonstration</title>
+ <link rel="stylesheet" type="text/css" href="css/docs.css"/>
+ </head>
+ <body style="padding: 20px;">
+
+<p>Demonstration of <a href="index.html">CodeMirror</a>'s Sparql
+highlighter.</p>
+
+<div class="border">
+<textarea id="code" cols="120" rows="30">
+PREFIX a: &lt;http://www.w3.org/2000/10/annotation-ns#>
+PREFIX dc: &lt;http://purl.org/dc/elements/1.1/>
+PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/>
+
+# Comment!
+
+SELECT ?given ?family
+WHERE {
+ ?annot a:annotates &lt;http://www.w3.org/TR/rdf-sparql-query/> .
+ ?annot dc:creator ?c .
+ OPTIONAL {?c foaf:given ?given ;
+ foaf:family ?family } .
+ FILTER isBlank(?c)
+}
+</textarea>
+</div>
+
+<script type="text/javascript">
+ var editor = CodeMirror.fromTextArea('code', {
+ height: "250px",
+ parserfile: "parsesparql.js",
+ stylesheet: "css/sparqlcolors.css",
+ path: "js/"
+ });
+</script>
+
+ </body>
+</html>