Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit c0fea48

Browse files
committed
mostly integrated
1 parent 9a716bf commit c0fea48

File tree

5 files changed

+82
-3
lines changed

5 files changed

+82
-3
lines changed

src/main/webapp/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
<script src="js/workbench/search-querying-and-exploration/facete-controller.js"></script>
191191
<script src="js/workbench/search-querying-and-exploration/mappify-controller.js"></script>
192192
<script src="js/workbench/search-querying-and-exploration/virtuoso-controller.js"></script>
193+
<script src="js/workbench/search-querying-and-exploration/esta-ld-controller.js"></script>
193194
<script src="js/workbench/manual-revision-and-authoring/ontowiki-controller.js"></script>
194195
<script src="js/workbench/classification-and-enrichment/deer-controller.js"></script>
195196
<script src="js/workbench/linking-and-fusing/limes-controller.js"></script>

src/main/webapp/js/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ app.config(function($routeSegmentProvider, $routeProvider)
5656
.when('/workbench/search-querying-and-exploration/virtuoso', 'workbench.virtuoso')
5757
.when('/workbench/search-querying-and-exploration/facete', 'workbench.facete')
5858
.when('/workbench/search-querying-and-exploration/mappify', 'workbench.mappify')
59+
.when('/workbench/search-querying-and-exploration/esta-ld', 'workbench.esta-ld')
5960
.when('/workbench/manual-revision-and-authoring/ontowiki', 'workbench.ontowiki')
6061
.when('/workbench/linking-and-fusing/limes', 'workbench.limes')
6162
.when('/workbench/linking-and-fusing/fagi-gis', 'workbench.fagi-gis')
@@ -101,6 +102,8 @@ app.config(function($routeSegmentProvider, $routeProvider)
101102
templateUrl: 'js/workbench/search-querying-and-exploration/facete.html'})
102103
.segment('mappify', {
103104
templateUrl: 'js/workbench/search-querying-and-exploration/mappify.html'})
105+
.segment('esta-ld', {
106+
templateUrl: 'js/workbench/search-querying-and-exploration/esta-ld.html'})
104107
.segment('virtuoso', {
105108
templateUrl: 'js/workbench/search-querying-and-exploration/virtuoso.html'})
106109
.segment('ontowiki', {
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
'use strict';
2+
/****************************************************************************************************
3+
*
4+
* Facete Controller
5+
*
6+
***************************************************************************************************/
7+
8+
app.controller('EstaLdCtrl', function($scope, ConfigurationService, ComponentsService, GraphService) {
9+
//Settings for Facete
10+
11+
12+
var componentId ="esta-ld";
13+
var serviceId = "esta-ld-service";
14+
15+
ComponentsService.getComponent(componentId).then(
16+
//success
17+
function(response){
18+
$scope.component = response;
19+
$scope.sevice = ComponentsService.getComponentService(serviceId, $scope.component);
20+
if($scope.sevice== null)
21+
flash.error="Service not configured: " +serviceId;
22+
$scope.url= $scope.sevice.serviceUrl +
23+
'?service-uri='+ encodeURIComponent($scope.estald.service) +
24+
'&default-graph-uri=';
25+
},
26+
function(response){
27+
flash.error="Component not configured: " +ServerErrorResponse.getMessage(response);
28+
});
29+
30+
//scope variable is for the source-graph direcitve
31+
$scope.source = {
32+
label : "Source Graph",
33+
graph : "" };
34+
35+
$scope.estald = {
36+
service : ConfigurationService.getSPARQLEndpoint(),
37+
dataset : "",
38+
};
39+
40+
41+
$scope.updateServiceParams = function(){
42+
$scope.url= $scope.sevice.serviceUrl +
43+
'?service-uri=' + encodeURIComponent($scope.estald.service) +
44+
'&default-graph-uri=' + encodeURIComponent($scope.estald.dataset.replace(':',ConfigurationService.getUriBase()));
45+
console.log($scope.url);
46+
};
47+
48+
$scope.openService = function(){
49+
window.open($scope.url);
50+
return false;
51+
}
52+
53+
54+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<div ng-controller="EstaLdCtrl">
2+
<component-header></component-header>
3+
4+
<form class="form-horizontal InputForm" role="form" novalidate>
5+
6+
<div class="form-group">
7+
<label for="Endpoint" class="col-xs-2 control-label">Endpoint</label>
8+
<div class="input-group col-sm-8">
9+
<input type="url" class="form-control" id="Endpoint" disabled="disabled" ng-model="estald.service"></input>
10+
</div>
11+
</div>
12+
13+
<source-graph source-changed="updateServiceParams()"></source-graph>
14+
15+
<div class="form-group">
16+
<div class="col-sm-2"></div>
17+
<a class="btn btn-success btn-large" ng-click="openService();">Launch Service</a>
18+
</div>
19+
</div>
20+
21+
</form>
22+
23+
</div>
24+

src/main/webapp/js/workbench/search-querying-and-exploration/virtuoso.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
<h4>Launch Virtuoso endpoint Interface</h4>
66

7-
8-
9-
107
<form name="virtuosoForm" class="form-horizontal InputForm" role="form" novalidate>
118

129
<div class="form-group">

0 commit comments

Comments
 (0)