| <?xml version="1.0" encoding="utf-8"?> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head><title>SPARQLer</title> |
| <link rel="stylesheet" type="text/css" href="css/fuseki.css" /> |
| </head> |
| |
| <body> |
| <h1>SPARQLer - An RDF Query Demo</h1> |
| <p>Example queries (or edit and write your own!). All the text boxes invoke the same "books" service - they just get initialised with different examples.</p> |
| <hr/> |
| |
| <div class="moreindent"> |
| |
| <form action="books/sparql" method="get"> |
| <p>SELECT - get variables (apply XSLT stylesheet)</p> |
| <p><textarea name="query" cols="70" rows="15"> |
| PREFIX books: <http://example.org/book/> |
| PREFIX dc: <http://purl.org/dc/elements/1.1/> |
| SELECT ?book ?title |
| WHERE |
| { ?book dc:title ?title }</textarea> |
| <br/> |
| |
| Output: <select name="output"> |
| <option value="json">JSON</option> |
| <option value="xml">XML</option> |
| <option value="text">Text</option> |
| <option value="csv">CSV</option> |
| <option value="tsv">TSV</option> |
| </select> |
| <br/> |
| XSLT style sheet (blank for none): |
| <input name="stylesheet" size="20" value="/xml-to-html.xsl" /> |
| <br/> |
| <input type="checkbox" name="force-accept" value="text/plain"/> |
| Force the accept header to <tt>text/plain</tt> regardless |
| <br/> |
| |
| <input type="submit" value="Get Results" /> |
| </p> |
| </form> |
| |
| <hr/> |
| |
| <form action="books/sparql"> |
| <p>CONSTRUCT - return a graph</p> |
| <p><textarea name="query" cols="70" rows="10"> |
| PREFIX dc: <http://purl.org/dc/elements/1.1/> |
| CONSTRUCT { $book dc:title $title } |
| WHERE |
| { $book dc:title $title } |
| </textarea> |
| <br/> |
| <input type="submit" value="Get Results" /> |
| </p> |
| </form> |
| <hr/> |
| </div> |
| </body> |
| </html> |