Skip to content

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav SinghaRoy committed Sep 29, 2014
2 parents 7984769 + 54e6dee commit 39eedd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/javascripts/resources/sparql.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ SPARQL = {
},
download : {
rdb : function(){
window.open(Utils.rdf2any.server+Utils.rdf2any.actions.convert+"rdb-converter.sql?dataset="+QueryBuilder.datasets.get_selected()+"&query="+encodeURIComponent($("#txt_sparql_query").val()));
var download_url = Utils.rdf2any.server+Utils.rdf2any.actions.convert+"rdb-converter.sql?dataset="+QueryBuilder.datasets.get_selected()+"&query="+encodeURIComponent($("#txt_sparql_query").val());
var selected_class = QueryBuilder.classes.get_selected_class();
if(selected_class != undefined && selected_class != '')
download_url += "&for_class="+selected_class
window.open(download_url);
},
csv : function(){
window.open(Utils.rdf2any.server+Utils.rdf2any.actions.convert+"csv-converter.csv?dataset="+QueryBuilder.datasets.get_selected()+"&query="+encodeURIComponent($("#txt_sparql_query").val()));
Expand Down

0 comments on commit 39eedd3

Please sign in to comment.