File tree Expand file tree Collapse file tree
app/assets/javascripts/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ SPARQL = {
4141 } ,
4242 download : {
4343 rdb : function ( ) {
44- window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "rdb-converter.sql?dataset=" + QueryBuilder . datasets . get_selected ( ) + "&query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
44+ var download_url = Utils . rdf2any . server + Utils . rdf2any . actions . convert + "rdb-converter.sql?dataset=" + QueryBuilder . datasets . get_selected ( ) + "&query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ;
45+ var selected_class = QueryBuilder . classes . get_selected_class ( ) ;
46+ if ( selected_class != undefined && selected_class != '' )
47+ download_url += "&for_class=" + selected_class
48+ window . open ( download_url ) ;
4549 } ,
4650 csv : function ( ) {
4751 window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "csv-converter.csv?dataset=" + QueryBuilder . datasets . get_selected ( ) + "&query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments