Skip to toolbar

Community & Business Groups

Making SPARQL fancy with YASQE and YASR

I’ve been working recently on a rewrite of YASGUI (a tool I wrote a year ago) from the ground up. I’ve decided to take a more modular approach, publishing components of YASGUI as separate JS libraries.

The results are:

  • Yet Another Sparql Query Editor (YASQE, Key features are:
    • SPARQL syntax highlighting and error checking
    • Extremely customizable: All functions and handlers from CodeMirror library are accessible
    • Persistent values (optional): your query is stored for easier reuse between browser sessions
    • Prefix autocompletion (using
    • Property and class autocompletion (using Linked Open Vocabularies)
    • Handlers to easily add your own property and class autocompletion
    • Handy keyboard shortcuts
    • Possible to execute the query directly
  • Yet Another Resultset GUI (YASR
    • Easily customizable and extendible
    • Easily integrates with YASQE
    • Can handle any valid SPARQL resultset format
    • Use of common libraries such as jQuery Datatables and CodeMirror
    • Integration of for fetching URI labels

Enrichting your (often plain-text) SPARQL endpoint now 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.

If you have some feedback, let me know.

ps. Both tools are available via npm as well: and

2 Responses to Making SPARQL fancy with YASQE and YASR

  • Hello,

    I’m trying to use this library. My question is : I’m using Angular and I have an endpoint with prefix rdfs and owls something. Problem is I cannot do, I want do a search typing in text area and want it to be hightlight and autocomplete. And want to use this

    Is there any tutorial for it or explanation ?

    Thank you a lot.


  • Dear all, I am looking for a SPARQL plugin which has the possibility to add some prepared queries on the side. Like in UniProt and Wikidata query service. By clicking on the query, it is loaded to the SPARQL editor and it is possible to run it.

    Many thanks in advance.
    Best regards,


Leave a Reply

Your email address will not be published. Required fields are marked *

Before you comment here, note that this forum is moderated and your IP address is sent to Akismet, the plugin we use to mitigate spam comments.