File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 return
5555 return
5656
57- @ download_sparql_result_set = (type )->
58- if type is " csv"
59- window .open (" http://localhost:8080/rdf2any/v1.0/convert/csv-converter.csv?query=" + encodeURIComponent ($ (" #txt_sparql_query" ).val ()))
60- else if type is " rdb"
61- window .open (" http://localhost:8080/rdf2any/v1.0/convert/rdb-converter.sql?query=" + encodeURIComponent ($ (" #txt_sparql_query" ).val ()))
62- else if type is " pdf"
63- $ .get get_server_address ()+ " /query/execute_sparql" ,
64- query : $ (" #txt_sparql_query" ).val ()
65- pdf : " true"
6657@ show_sparql_download_modal = ->
6758 if SPARQL .textbox .is_valid ()
6859 $ (" #sparql_download_modal" ).modal (" show" )
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ SPARQL = {
4242 } ,
4343 csv : function ( ) {
4444 window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "/csv-converter.csv?query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
45+ } ,
46+ pdf : function ( ) {
47+ Utils . alert ( "The PDF download feature has not been implemented yet." ) ;
48+ } ,
49+ json : function ( ) {
50+ Utils . alert ( "The JSON download feature has not been implemented yet." ) ;
4551 }
4652 }
4753
Original file line number Diff line number Diff line change 3939 < div class ="btn-group ">
4040 < button type ="button " class ="btn btn-default btn-primary " onclick ="SPARQL.download.rdb() "> < span class ="glyphicon glyphicon-list-alt "> </ span > RDB Script</ button >
4141 < button type ="button " class ="btn btn-default btn-success " onclick ="SPARQL.download.csv() "> < span class ="glyphicon glyphicon-align-justify "> </ span > CSV</ button >
42- < button type ="button " class ="btn btn-default btn-info "> < span class ="glyphicon glyphicon-road "> </ span > JSON</ button >
43- < button type ="button " class ="btn btn-default btn-warning " onclick ="download_sparql_result_set(' pdf' ) "> < span class ="glyphicon glyphicon-file "> </ span > PDF</ button >
42+ < button type ="button " class ="btn btn-default btn-info " onclick =" SPARQL.download.json() " > < span class ="glyphicon glyphicon-road "> </ span > JSON</ button >
43+ < button type ="button " class ="btn btn-default btn-warning " onclick ="SPARQL.download. pdf( ) "> < span class ="glyphicon glyphicon-file "> </ span > PDF</ button >
4444 </ div >
4545 </ div >
4646 < div class ="modal-footer ">
You can’t perform that action at this time.
0 commit comments