Revision: 1842
Author: [email protected]
Date: Wed Feb 10 09:58:06 2010
Log: Added different output formats for the Joseki SPARQL query page.
(fixes issue 116)
update issue 116
Added different output formats for the Joseki SPARQL query page. It now can
output text, JSON or XML. Additionally, you can force text/plain HTTP
headers.
http://code.google.com/p/simal/source/detail?r=1842
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 3 10:48:02 2010
+++
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.html
Wed Feb 10 09:58:06 2010
@@ -28,8 +28,17 @@
<p><textarea wicket:id="query" cols="80" rows="15">Type your query
here.</textarea>
</p>
</fieldset>
- <input type="hidden" name="output" value="text" />
-
+ <fieldset><legend>Output options</legend>
+ <p>
+ Output XML: <input type="radio" name="output" value="xml"/>
+ with XSLT style sheet (leave blank for none):
+ <input name="stylesheet" size="25" value="/xml-to-html.xsl" /> <br/>
+ or JSON output: <input type="radio" name="output" value="json"/> <br/>
+ or text output: <input type="radio" name="output" value="text"
checked/> <br/>
+ Force the accept header to <tt>text/plain</tt> regardless
+ <input type="checkbox" name="force-accept" value="text/plain"/>
+ </p>
+ </fieldset>
<p><input type="submit" value="Execute" /></p>
</form>
</wicket:extend>
--
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.