UNPKG

graphdb-workbench

Version:
2 lines 16.6 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{164:function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div id="sparql-content">\n <div ng-hide="viewMode == \'editor\'"\n ng-class="orientationViewMode ? \'row\' : viewMode == \'yasr\' ? \'col-xs-12\' : \'col-xs-6\'" ng-style="noPadding">\n <div class="col-xs-12 mb-1" ng-style="noPadding">\n\n <ul class="nav nav-tabs">\n <li ng-hide="notabs" role="presentation" ng-repeat="tab in tabs" ng-click="focusQueryEditor()"\n class="nav-item sparql-tab">\n <sparql-tab\n data-id="{{tab.id}}"\n class="nav-link">\n </sparql-tab>\n </li>\n <li ng-hide="notabs" role="presentation" ng-click="focusQueryEditor()" class="nav-item">\n <span id="wb-sparql-addNewTab" ng-click="addNewTab()" class="nav-link">\n \t<button class="btn btn-link btn-sm secondary"><span class="icon-plus"></span></button>\n </span>\n </li>\n </ul>\n\n <script type="text/ng-template" id="sampleQueriesPopoverTemplate.html">\n <ul id="wb-sparql-queryInSampleQueries" class="list-unstyled">\n <li ng-repeat="query in sampleQueries" ng-hide="ignoreSharedQueries && query.owner != principal().username" class="hovered-parent saved-query">\n <a href ng-click="querySelected(query)">{{query.name}}</a>\n &nbsp;\n <em class="icon-warning" ng-show="query.owner != principal().username && isUser()"\n uib-popover="Query shared by another user. You may not edit or delete it."\n popover-trigger="mouseenter"></em>\n <span class="actions-bar hovered-item">\n\t\t\t\t\t\t\t<button class="btn btn-link btn-sm"\n ng-show="query.owner == principal().username && isUser()"\n uib-popover="Edit query" popover-trigger="mouseenter"\n ng-click="editQuery(query)">\n\t\t\t\t\t\t\t\t<span class="icon-edit"></span>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button class="btn btn-link btn-sm"\n ng-show="query.owner == principal().username && isUser()"\n uib-popover="Delete query" popover-trigger="mouseenter"\n ng-click="deleteQuery(query.name)">\n\t\t\t\t\t\t\t\t<span class="icon-trash"></span>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button class="btn btn-link btn-sm"\n uib-popover="Get URL to query" popover-trigger="mouseenter"\n ng-click="copyToClipboardQuery(query.name, query.owner)">\n\t\t\t\t\t\t\t\t<span class="icon-link"></span>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</span>\n </li>\n </ul>\n <\/script>\n\n \x3c!--\n <div class="collapse width pull-right well" id="sampleQueriesCollapse">\n <div class="list-group-item-heading">Select saved query from the list</div>\n <ul id="wb-sparql-queryInSampleQueries" class="queries list-unstyled">\n <li ng-repeat="query in sampleQueries">\n\n <a href="#" ng-click="querySelected(query.body)"><i class="fa fa-1x fa-caret-right"></i>{{query.name}}</a>\n <span>\n <i ng-show="canWriteActiveRepo()" uib-tooltip="Edit query" tooltip-trigger="mouseenter" href="#" class="fa fa-pencil-square-o fa-1x editSampleQuery" ng-click="editQuery(query)"></i>\n <i ng-show="canWriteActiveRepo()" uib-tooltip="Delete query" tooltip-trigger="mouseenter" href="#" class="fa fa-trash-o fa-1x deleteSampleQuery" ng-click="deleteQuery(query.name)"></i>\n <i uib-tooltip="Get URL to query" tooltip-trigger="mouseenter" href="#" class="fa fa-link fa-1x" ng-click="copyToClipboardQuery(query.name)"></i>\n </span>\n </li>\n </ul>\n </div>\n --\x3e\n\n <div id="queryEditor">\n <textarea ng-model="query" id="query" rows="16" cols="100"></textarea>\n\n <div id="yasqe_buttons_mocked" style="display: none"></div>\n <div id="yasqe_buttons" ng-hide="notoolbar">\n <div id="buttons">\n <button class="btn btn-link" id="wb-sparql-saveQuery"\n ng-show="!notoolbarSaved && isUser()"\n ng-click="saveTab(currentQuery.id); saveQuery(currentQuery);"\n data-container="#queryEditor"\n uib-tooltip="Create saved query"\n tooltip-append-to-body="true"\n tooltip-trigger="mouseenter">\n <em class="icon-save icon-2-5x"></em>\n </button>\n \x3c!-- Popover with focus trigger on Safari 7+ needs an <a> with tabindex --\x3e\n <a tabindex="0" class="btn btn-link" id="wb-sparql-toggleSampleQueries"\n ng-hide="notoolbarSaved"\n ng-click="toggleSampleQueries()"\n data-container="#queryEditor"\n uib-tooltip="Show saved queries"\n tooltip-append-to-body="true"\n tooltip-trigger="mouseenter"\n uib-popover-template="\'sampleQueriesPopoverTemplate.html\'"\n popover-trigger="focus"\n popover-placement="left"\n popover-append-to-body="true">\n \x3c!-- This popover has to be on the both elements (<a> and inner <span>) so it can be shown in all browsers (Chrome, IE11, Edge, Firefox) --\x3e\n <span class="icon-folder icon-2-5x"\n uib-popover-template="\'sampleQueriesPopoverTemplate.html\'"\n popover-trigger="focus"\n popover-placement="left"\n popover-append-to-body="true"></span>\n </a>\n <button class="btn btn-link" id="wb-sparql-copyToClipboardQuery"\n ng-hide="notoolbarCopy"\n ng-click="copyToClipboardQuery()"\n uib-tooltip="Get URL to current query"\n tooltip-append-to-body="true">\n <span class="icon-link icon-2-5x"></span>\n </button>\n <button class="btn btn-link" id="inference"\n ng-hide="notoolbarInference"\n ng-click="currentQuery.inference = !currentQuery.inference"\n uib-tooltip="Include inferred data in results: {{currentQuery.inference ? \'ON\' : \'OFF\'}}"\n tooltip-append-to-body="true">\n <span class="icon-2-5x"\n ng-class="{\'icon-inferred-on\':currentQuery.inference, \'icon-inferred-off\':!currentQuery.inference}"></span>\n </button>\n <button class="btn btn-link" id="sameAs"\n ng-hide="notoolbarSameAs"\n ng-click="currentQuery.sameAs = !currentQuery.sameAs"\n uib-tooltip="Expand results over owl:sameAs: {{currentQuery.sameAs ? \'ON\' : \'OFF\'}}"\n tooltip-append-to-body="true">\n <span class="icon-2-5x"\n tooltip="{{!currentQuery.inference ? \'Requires \\\'Include Inferred\\\'!\' : \'\'}}"\n ng-class="{\'icon-sameas-on\':currentQuery.sameAs, \'icon-sameas-off\':!currentQuery.sameAs}"></span>\n </button>\n </div>\n </div>\n <div id="runButton" ng-hide="norun">\n <button id="wb-sparql-runQuery" class="btn btn-primary" ng-disabled="queryIsRunning"\n ng-click="runQuery(false, $event.shiftKey)">\n {{runButtonName}}\n </button>\n </div>\n <div>\n <keyboard-shortcuts template-url="res/sparql/keyboard-shortcuts.html"></keyboard-shortcuts>\n </div>\n \x3c!--\n <div id="checkboxes">\n --\x3e\n \x3c!-- TODO: Disable this for now, because it is causing bigger bugs/problems https://jira.ontotext.com/browse/OWLIM-2081\n <input id="sameAs" ng-model="currentQuery.sameAs" data-label="disable sameAs" name="equivalent" value="http://www.ontotext.com/disable-sameAs" type="checkbox"/> --\x3e\n \x3c!--\n <label>\n <input id="inference" ng-model="currentQuery.inference" type="checkbox" value="true" />\n Include inferred\n </label>\n </div>\n --\x3e\n </div>\n \x3c!--<div id="separator" ng-if="!orientationViewMode" ng-mousedown="onDragStart($event)" draggable="true" ondragend="angular.element(this).scope().onDragEnd(event)"></div>--\x3e\n </div>\n\n </div>\n\n <div class="clearfix mb-2" ng-hide="viewMode === \'yasr\'" id="yasr"\n ng-class="orientationViewMode ? \'col-xs-12 col-lg-12\' : viewMode == \'editor\' ? \'col-xs-12 vertical\' : \'col-xs-6 vertical\'">\n <uib-pagination\n class="nav navbar-right"\n ng-show="currentTabConfig.queryType != \'UPDATE\' && !queryIsRunning && currentTabConfig.allResultsCount > currentTabConfig.pageSize"\n total-items="currentTabConfig.allResultsCount"\n items-per-page="currentTabConfig.pageSize"\n ng-model="currentTabConfig.page"\n ng-change="changePagination()"\n direction-links="true"\n boundary-l\n max-size="5"\n rotate="true"\n previous-text="&lsaquo;"\n next-text="&rsaquo;"\n first-text="&laquo;"\n last-text="&raquo;">\n </uib-pagination>\n\n <div class="yasr" id="yasr-inner">\n <div ng-hide="nostatus || currentTabConfig.queryType || queryIsRunning"\n class="alert alert-info no-icon no-query-run">No results from previous run.\n Click Run or press Ctrl/Cmd-Enter to execute the current query or update.\n </div>\n \x3c!--ng-show="!queryIsRunning">--\x3e\n <div class=\'yasr_header mb-1 clearfix\'\n ng-show="currentTabConfig.queryType && currentTabConfig.queryType != \'UPDATE\' && currentTabConfig.queryType != \'ERROR\' && currentTabConfig.queryType != \'ASK\' && !queryIsRunning">\n <div class="resultsVisualButton btn-group pull-right">\n <button class="btn btn-primary btn-sm" ng-show="!queryIsRunning && currentTabConfig.queryType && (currentTabConfig.queryType == \'CONSTRUCT\' || currentTabConfig.queryType == \'DESCRIBE\')"\n ng-click="goToVisual()">\n Visual\n </button>\n </div>\n </div>\n <h6 class="alert alert-danger no-icon additional" ng-show="!queryIsRunning && !nostatus && currentTabConfig.errorMessage">Error: {{currentTabConfig.errorMessage}}</h6>\n <h6 class="alert alert-warning no-icon additional" ng-show="!queryIsRunning && !nostatus && currentTabConfig.warningMessage">Warning: {{currentTabConfig.warningMessage}}</h6>\n <div class="alert alert-info no-icon results-info"\n ng-show="!nostatus && currentTabConfig.queryType && currentTabConfig.queryType != \'UPDATE\' && currentTabConfig.queryType != \'ERROR\' && !queryIsRunning">\n <div class="text-xs-right">\n <span class="icon-warning icon-lg"\n ng-show="getStaleWarningMessage()"\n uib-tooltip="{{getStaleWarningMessage()}}" tooltip-trigger="mouseenter"\n tooltip-append-to-body="true"></span>\n <span ng-show="currentTabConfig.queryType != \'ASK\'" class="results-description">\n {{getResultsDescription()}}\n </span>\n <span ng-show="currentTabConfig.timeTook" class="query-duration">\n Query took {{getHumanReadableSeconds(currentTabConfig.timeTook, true)}}, {{ getHumanReadableTimestamp(currentTabConfig.timeFinished) }}.\n </span>\n </div>\n </div>\n <div class=\'alert alert-info no-icon update-info\'\n ng-show="!nostatus && currentTabConfig.queryType == \'UPDATE\' && !queryIsRunning">\n {{getUpdateDescription()}}\n <span ng-show="currentTabConfig.timeTook">\n {{currentTabConfig.customUpdateMessage ? \'Operation\' : \'Update\'}} took {{getHumanReadableSeconds(currentTabConfig.timeTook, true)}}, {{ getHumanReadableTimestamp(currentTabConfig.timeFinished) }}.\n </span>\n </div>\n <div class="alert alert-danger no-icon results-info update-info" ng-show="currentTabConfig.queryType == \'ERROR\'">\n <div>\n <div class="pull-right" ng-show="currentTabConfig.timeTook">\n Operation took {{getHumanReadableSeconds(currentTabConfig.timeTook, true)}}, {{ getHumanReadableTimestamp(currentTabConfig.timeFinished) }}.\n </div>\n <h6>Error<span ng-show="yasr.results.getException().status > 0"> {{yasr.results.getException().status}}: {{yasr.results.getException().statusText}}</span></h6>\n </div>\n\n <div class="plaintext">{{yasr.results.getException().responseText}}</div>\n </div>\n <div class=\'yasr_results\' ng-show="currentTabConfig.queryType && currentTabConfig.queryType != \'UPDATE\' && currentTabConfig.queryType != \'ERROR\' && !queryIsRunning"></div>\n </div>\n\n <div ng-show="queryIsRunning && currentTrackAlias" class="qe-aborter">\n <div disabled-wrapper class="d-inline-block" uib-popover="{{abortRequested ? (lastRunQueryMode === \'update\' ? \'Update was requested to abort and will be terminated if possible\' : \'Query was requested to abort and will be terminated on the first I/O operation\') : (lastRunQueryMode === \'update\' ? \'Click to abort update\' : \'Click to abort query\')}}"\n popover-trigger="mouseenter"\n popover-placement="left">\n <div ng-class="abortRequested ? \'disabled\' : \'\'"> \x3c!-- Keep this div --\x3e\n <button ng-disabled="abortRequested" class="btn btn-xs btn-primary"\n ng-click="abortCurrentQuery()" ng-hide="!isUserLoggedIn() && isSecurityEnabled()">\n {{abortRequested ? \'Stop has been requested\' : (lastRunQueryMode === \'update\' ? \'Abort update\' : \'Abort query\')}}\n </button>\n </div>\n </div>\n </div>\n\n <div onto-loader-new\n ng-if="queryIsRunning"\n ng-show="queryIsRunning"\n class="sparql-loader"\n size="75"\n message="getLoaderMessage"\n timeout="[1]">\n </div>\n </div>\n</div>\n';return __p}}}]); //# sourceMappingURL=111.73819c3722ceee587ce7.bundle.js.map