Revision: 1846
Author: [email protected]
Date: Mon Feb 15 15:15:46 2010
Log: Add a section for example queries
http://code.google.com/p/simal/source/detail?r=1846
Modified:
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.html
=======================================
---
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.html
Wed Feb 10 09:58:06 2010
+++
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.html
Mon Feb 15 15:15:46 2010
@@ -21,7 +21,7 @@
<wicket:extend>
<h2>SPARQL Query</h2>
- <h2>This form allows raw querying of the data</h2>
+ <p>This form allows raw querying of the data (<a href="#examples">example
queries</a>)</p>
<form action="joseki/sparql">
<fieldset><legend>SPARQLQuery</legend>
@@ -41,6 +41,27 @@
</fieldset>
<p><input type="submit" value="Execute" /></p>
</form>
+
+ <h2 id="examples">Example Queries</h2>
+ <table>
+ <tr>
+ <th>Query</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>
+<pre>
+PREFIX doap: <http://usefulinc.com/ns/doap#>
+SELECT DISTINCT ?name
+WHERE {
+ ?project a doap:Project .
+ ?project doap:name ?name
+}
+</pre>
+ </td>
+ <td>Get the name of all doap:Projects in the repository.</td>
+ </tr>
+ </table>
</wicket:extend>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups "Simal
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en.