Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
/target
.classpath
.project
*.iml
.idea

# /bigdata/
/bigdata/bin
Expand Down
1 change: 1 addition & 0 deletions bigdata-war-html/src/main/webapp/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ <h2 id = "nopad">ultra-scalable, high-performance database from Blazegraph</h2>
<a href="#" class="advanced-features-toggle">Advanced features</a>

<div class="advanced-features">
<input type="checkbox" id="query-disable-inference"> <label for="query-disable-inference">Disable inference</label>
<input type="checkbox" id="query-explain"> <label for="query-explain">Explain</label>
<input type="checkbox" id="query-details"> <label for="query-details">(Details)</label>
<input type="checkbox" name="analytic" value="true" id="query-analytic"> <label for="query-analytic">Analytic</label>
Expand Down
17 changes: 16 additions & 1 deletion bigdata-war-html/src/main/webapp/html/js/workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,15 @@ function handleExplain() {
}
}

function handleQueryInference() {
if(this.checked) {
$('#query-disable-inference').prop('checked', true);
}
else {
$('#query-disable-inference').prop('checked', false);
}
}

function handleDetails() {
if(this.checked) {
$('#query-explain').prop('checked', true);
Expand Down Expand Up @@ -1158,6 +1167,11 @@ function submitQuery(e) {
};

if(!$('#query-explain').is(':checked')) {
if ($('#query-disable-inference').is(':checked')) {
console.log('Checked')
settings.data += '&includeInferred=false'
console.log(settings.data)
}
$('#query-response').show().html('Query running...');
$('#query-pagination').hide();

Expand All @@ -1172,7 +1186,7 @@ function submitQuery(e) {
if($('#query-explain').is(':checked')) {
settings = {
type: 'POST',
data: $('#query-form').serialize() + '&explain=' + ($('#query-details').is(':checked') ? 'details' : 'true'),
data: $('#query-form').serialize() + '&explain=' + ($('#query-details').is(':checked') ? 'details' : 'true') + ($('#query-disable-inference').is(':checked') ? '&includeInferred=false' : ''),
dataType: 'html',
success: showQueryExplanation,
error: queryResultsError
Expand Down Expand Up @@ -2177,6 +2191,7 @@ function setupHandlers() {
$('#query-form').submit(submitQuery);
$('#query-explain').change(handleExplain);
$('#query-details').change(handleDetails);
$('#query-disable-inference').change(handleQueryInference);
$('#query-history').on('click', '.query a', loadHistory);
$('#query-history').on('click', '.query-execution-time a', showRunningQueries);
$('#query-history').on('click', '.query-delete a', deleteHistoryRow);
Expand Down