{"id":17,"date":"2014-06-10T21:14:29","date_gmt":"2014-06-10T21:14:29","guid":{"rendered":"http:\/\/www.w3.org\/community\/rdfjs\/?p=17"},"modified":"2014-06-10T21:14:29","modified_gmt":"2014-06-10T21:14:29","slug":"making-sparql-fancy-with-yasqe-and-yasr","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/rdfjs\/2014\/06\/10\/making-sparql-fancy-with-yasqe-and-yasr\/","title":{"rendered":"Making SPARQL fancy with YASQE and YASR"},"content":{"rendered":"<p>I&#8217;ve been working recently on a rewrite of <a href=\"http:\/\/yasgui.laurensrietveld.nl\" target=\"_blank\" rel=\"nofollow\">YASGUI<\/a>\u00a0(a tool I wrote a year ago) from the ground up. I&#8217;ve decided to take a more modular approach, publishing components of YASGUI as separate JS libraries.<\/p>\n<p>The results are:<\/p>\n<ul>\n<li>Yet Another Sparql Query Editor (YASQE, http:\/\/yasgui.github.io\/YASQE\/). Key features are:\n<ul style=\"color: #333333\">\n<li>SPARQL syntax highlighting and error checking<\/li>\n<li>Extremely customizable: All functions and handlers from\u00a0<a style=\"color: #428bca\" href=\"http:\/\/codemirror.net\/\" target=\"_blank\" rel=\"nofollow\">CodeMirror library<\/a>\u00a0are accessible<\/li>\n<li>Persistent values (optional): your query is stored for easier reuse between browser sessions<\/li>\n<li>Prefix autocompletion (using\u00a0<a style=\"color: #428bca\" href=\"http:\/\/prefix.cc\/\" target=\"_blank\" rel=\"nofollow\">prefix.cc<\/a>)<\/li>\n<li>Property and class autocompletion (using <a href=\"http:\/\/lov.okfn.org\/\" target=\"_blank\" rel=\"nofollow\">Linked Open Vocabularies<\/a>)<\/li>\n<li>Handlers to easily add your own property and class autocompletion<\/li>\n<li>Handy\u00a0<a style=\"color: #428bca\" href=\"http:\/\/yasgui.github.io\/YASQE\/#keyboardShortcuts\" target=\"_blank\" rel=\"nofollow\">keyboard shortcuts<\/a><\/li>\n<li>Possible to execute the query directly<\/li>\n<\/ul>\n<\/li>\n<li>Yet Another Resultset GUI (YASR\u00a0http:\/\/yasgui.github.io\/YASR\/).\n<ul style=\"color: #333333\">\n<li>Easily customizable and extendible<\/li>\n<li>Easily integrates with\u00a0<a style=\"color: #428bca\" href=\"http:\/\/yasgui.github.io\/YASQE\" target=\"_blank\" rel=\"nofollow\">YASQE<\/a><\/li>\n<li>Can handle\u00a0<i>any<\/i>\u00a0valid SPARQL resultset format<\/li>\n<li>Use of common libraries such as\u00a0<a style=\"color: #428bca\" href=\"http:\/\/www.datatables.net\/\" target=\"_blank\" rel=\"nofollow\">jQuery Datatables<\/a>\u00a0and\u00a0<a style=\"color: #428bca\" href=\"http:\/\/codemirror.net\/\" target=\"_blank\" rel=\"nofollow\">CodeMirror<\/a><\/li>\n<li>Integration of\u00a0<a style=\"color: #428bca\" href=\"http:\/\/yasgui.github.io\/YASR\/preflabel.org\" target=\"_blank\" rel=\"nofollow\">preflabel.org<\/a>\u00a0for fetching URI labels<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Enrichting your (often plain-text) SPARQL endpoint\u00a0now requires only one or two lines of JS to instantiate YASR and\/or YASQE. Other possiblities include fancy integration of SPARQL queries in online documentation, or tools such as iPython notebook.<\/p>\n<p>If you have some feedback, let me know.<\/p>\n<p>ps. Both tools are available via npm as well:\u00a0https:\/\/www.npmjs.org\/package\/yasgui-yasqe and\u00a0https:\/\/www.npmjs.org\/package\/yasgui-yasr<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working recently on a rewrite of YASGUI\u00a0(a tool I wrote a year ago) from the ground up. I&#8217;ve decided to take a more modular approach, publishing components of YASGUI as separate JS libraries. The results are: Yet Another &hellip; <a href=\"https:\/\/www.w3.org\/community\/rdfjs\/2014\/06\/10\/making-sparql-fancy-with-yasqe-and-yasr\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3142,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-announcements","category-library"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/users\/3142"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":2,"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/posts\/17\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/rdfjs\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}