Skip to content

Instantly share code, notes, and snippets.

@kwijibo
Created November 3, 2009 13:25
Show Gist options
  • Save kwijibo/225046 to your computer and use it in GitHub Desktop.
Save kwijibo/225046 to your computer and use it in GitHub Desktop.
/* This is a template command. */
CmdUtils.CreateCommand({
name: "show sparql query",
icon: "http://swik.net/swikIcons/img-228-96x96.jpg",
homepage: "http://kwijibo.talis.com/",
author: {name: "Keith Alexander", email: "kwijibo@talis.com"},
license: "GPL",
description: "Showw the sparql query from the current url",
help: "How to use your command",
takes: {"input": /.*/},
preview: function(pblock, input) {
var part = window.location.search.split("query=")[1]
pblock.innerHTML = "<pre>"+ part+ "</pre>" ;
},
execute: function(input) {
window.location = window.location.replace('api.talis.com/stores', 'myadmin.kwijibo.talis.com');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment