Skip to content

Commit 4363d15

Browse files
author
Gaurav SinghaRoy
committed
made modifications for typed-literal
1 parent 32c8427 commit 4363d15

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/assets/javascripts/query.js.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
display_text += "&nbsp;<span class='badge'>"+data["xml:lang"]+"</span>"
1212
return "<td class='result-col-uri' style=\"word-wrap: break;\">"+display_text+"</td>"
1313

14+
@display_sparql_typed_literal = (data) ->
15+
return "<td class='result-col-uri' style=\"word-wrap: break;\">"+data.value+"</td>"
16+
1417
@display_blank_result_column = ->
1518
return "<td class= style=\"word-wrap: break;\">&nbsp;</td>"
1619

@@ -25,6 +28,8 @@
2528
return display_sparql_uri(data)
2629
else if data.type is "literal"
2730
return display_sparql_literal(data)
31+
else if data.type is "typed-literal"
32+
return display_sparql_typed_literal(data)
2833
else
2934
return display_blank_result_column()
3035

app/views/query/_search_results.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="btn-group " id="btn_group_download">
4040
<button type="button" class="btn btn-default btn-primary" onclick="SPARQL.download.rdb()"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;RDB Script</button>
4141
<button type="button" class="btn btn-default btn-success" onclick="SPARQL.download.csv()"><span class="glyphicon glyphicon-align-justify"></span>&nbsp;CSV</button>
42-
<button type="button" class="btn btn-default btn-info" onclick="SPARQL.download.json.for_class()"><span class="glyphicon glyphicon-road"></span>&nbsp;JSON</button>
42+
<button type="button" class="btn btn-default btn-info" onclick="SPARQL.download.json.virtuoso()"><span class="glyphicon glyphicon-road"></span>&nbsp;JSON</button>
4343
<button type="button" class="btn btn-default btn-warning" onclick="SPARQL.download.pdf()"><span class="glyphicon glyphicon-file"></span>&nbsp;PDF</button>
4444
<%if in_query_builder_action?%>
4545
<button class="btn btn-default btn-danger" onclick="QueryBuilder.convert.configured.initiate_download()"><span class="glyphicon glyphicon-glass"></span>&nbsp;Generic</button>

0 commit comments

Comments
 (0)