File tree Expand file tree Collapse file tree
assets/javascripts/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ QueryBuilder = {
7171 query += "OPTIONAL{?concept <" + v + "> ?" + k + "}.\n" ;
7272 } ) ;
7373 }
74- query += "FILTER(langMatches(lang(?label), \"EN\"))}\n LIMIT 200" ;
74+ query += "FILTER(langMatches(lang(?label), \"EN\"))}\n LIMIT " ;
75+ query += $ ( "#txt_sparql_query_limit" ) . val ( ) ;
7576 $ ( "#txt_sparql_query" ) . val ( query ) ;
7677 }
7778 ,
Original file line number Diff line number Diff line change 3030 </ div >
3131 < div class ="panel-footer ">
3232 < div class ="row ">
33- < div class ="col-md-9 ">
33+ < div class ="col-md-3 ">
3434 < div class ="btn-group ">
3535 < button type ="button " class ="btn btn-lg btn-success " onclick ="execute_sparql_query() "> < span class ="glyphicon glyphicon-play "> </ span > </ button >
3636 < button type ="button " class ="btn btn-lg btn-warning " onclick ="show_sparql_download_modal() "> < span class ="glyphicon glyphicon-floppy-save "> </ span > </ button >
3737 </ div >
3838 </ div >
39- <% if mode == "sparql "%>
39+ <% if mode == "builder "%>
4040 < div class ="col-md-3 ">
41+ < div class ="form-group ">
42+ < label for ="txt_sparql_query_limit " class ="col-sm-2 control-label " style ="margin-top:5px; "> Limit</ label >
43+ < div class ="col-sm-10 ">
44+ < input type ="text " class ="form-control " id ="txt_sparql_query_limit " placeholder ="Limit " value ="200 ">
45+ </ div >
46+ </ div >
47+ </ div >
48+ <% end%>
49+ <% if mode == "sparql" %>
50+ < div class ="col-md-3 pull-right ">
4151 < button onclick ="generate_sample_query('1') " type ="button " class ="btn btn-lg btn-info pull-right "> Sample Query</ button >
4252 </ div >
4353 <% end%>
@@ -50,3 +60,10 @@ SELECT ?subject ?label
5060WHERE { ?subject rdfs:label ?label.
5161FILTER(langMatches(lang(?label), "EN"))} LIMIT 200</ textarea >
5262</ div >
63+ <% if mode == "builder" %>
64+ < script >
65+ $ ( "#txt_sparql_query_limit" ) . change ( function ( ) {
66+ QueryBuilder . show_equivalent_sparql_query ( ) ;
67+ } ) ;
68+ </ script >
69+ <% end %>
You can’t perform that action at this time.
0 commit comments