P.S. I've seen Danny Ayers sparql editor before but I can't find a reliable source of the code.
Edit: CodeMirror 2 (the new version) seems to have an even nicer plugin for SPARQL syntax editing, which in addition to highlighting and indention also includes syntax checking. See http://openup.tso.co.uk/blog/flint-sparql-editor and http://openuplabs.tso.co.uk/demos/sparqleditor.
Maybe check out SPARQL-if?
We developed a graphical SPARQL query builder for OntoWiki using AJAX and of course PHP for the plugin backend. It enables non-experts to create complex queries on a RDF-database. It is now a feature-rich but easy-to-use tool with a good work-flow and nice design. It has grown to 7500 LOC but its not slow at all and it uses modern technologies like SVG, jQuery and extensive use of Ajax (with JSON). It will be used (in the first place) at the history department of the University of Leipzig (Germany).
Or OpenLink's iSPARQL?
I seem to have found the code you are looking for by using Google "sparql-editor site:dannyayers.com". But I must say it doesn't seem like a very useful editor.
There are two SPARQL editors that I like very much, both of which are not open source so probably don't help you but I mention them to convey what I think a good SPARQL editor is like:
- Top Braid Composer - with code completion on resources, syntax highlighting, SPARQL validation. written in Java using Eclipse framework.
Both products can be tried out using free trials. AGWebView can be tried out by downloading Allegrograph.
Have a look at YASGUI. YASGUI supports:
- Accessing -all- endpoints (including CORS-disabled ones, or endpoints on your localhost)
- Query syntax highlighting and checking
- Prefix autocompletion (using prefix.cc)
- Endpoint search and autocompletion (using CKAN and Mondeca Endpoint Status )
- Query permalinks
- Query bookmarking
- SNORQL-type navigation
Try it out here: http://yasgui.laurensrietveld.nl.
Might be something in the Tabulator: