Icorporate template hints and context info from CodeMirror-XQuery #68
Comments
The XQuery demo seems to be down ( My main concern is keeping a standards compliant SPARQL syntax, so we'll On Sun, May 10, 2015 at 6:00 PM, Alan Ruttenberg notifications@github.com
|
The idea isn't to change the SPARQL syntax, but instead to make available a set of "lego" pieces that can be more easily composed into more complex queries. While I have program syntax in my own code, I expect it feels more like direct manipulation of the BGP snippets when in YASQE - drag in a snippet, then another, adjust variables, add a couple of lines, drag in another snippet/pattern. Bookmarking full queries is a useful thing, but it is more for demo or for using as a simple template with minor modifications. I'm mixed about storing the templates in local storage. At a minimum they should be able to be loaded up from a file and be able to be exported to share if construction of them is possible in YASQE. |
Closing as we're moving to a new monorepo at https://github.com/TriplyDB/Yasgui. |
https://github.com/angelozerr/CodeMirror-XQuery/
The template hints are very nice and mirror something I'm already doing, but by coding instead of directly in YASGUI see https://code.google.com/p/ohd-ontology/source/browse/trunk/src/analysis/sparql-patterns.r
Those templates are invoked as, e.g.
tooth_or_surface_procedure_pattern(proci="?proc1") to substitute ?proc1 for ?proci in the pattern.
What is appealing about the codemirror template hints is that you also only have to enter the variable name you want to update once, and the template code fills in the others.
Context info will let me add term definitions for choices in autocomplete.
The text was updated successfully, but these errors were encountered: