Revision: 1890
Author: [email protected]
Date: Wed May 26 05:57:01 2010
Log: Added some SPARQL convenience with added prefixes and an extra example query.
http://code.google.com/p/simal/source/detail?r=1890

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.java

=======================================
--- /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.html Mon Feb 15 15:15:46 2010 +++ /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.html Wed May 26 05:57:01 2010
@@ -61,6 +61,20 @@
       </td>
       <td>Get the name of all doap:Projects in the repository.</td>
     </tr>
+    <tr>
+      <td>
+<pre>
+SELECT DISTINCT ?s ?p ?o
+WHERE {
+  { ?s ?p &lt;http://people.apache.org/~rgardler/#me&gt; }
+UNION
+  { &lt;http://people.apache.org/~rgardler/#me&gt; ?p ?o }
+
+}
+</pre>
+      </td>
+ <td>Show all statements where the URI &lt;http://people.apache.org/~rgardler/#me&gt; is subject or object.</td>
+    </tr>
   </table>
 </wicket:extend>
 </body>
=======================================
--- /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.java Tue Feb 16 05:15:45 2010 +++ /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.java Wed May 26 05:57:01 2010
@@ -32,7 +32,9 @@
   private static final String SPARQL_QUERY_STRING_FIELD = "query";

private static final String QUERY_PREFIX = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \n"
+      + "PREFIX  rdfs:  <http://www.w3.org/2000/01/rdf-schema#> \n"
       + "PREFIX  doap: <http://usefulinc.com/ns/doap#> \n"
+      + "PREFIX  foaf: <http://xmlns.com/foaf/0.1/> \n"
       + "PREFIX  simal: <http://oss-watch.ac.uk/ns/0.2/simal#> \n\n";

private final SparqlQueryInputModel inputModel = new SparqlQueryInputModel();

--
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.

Reply via email to