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

Commit 13cae95

Browse files
committed
several fix
1 parent 6604507 commit 13cae95

File tree

16 files changed

+47
-146
lines changed

16 files changed

+47
-146
lines changed

src/deb/control/control

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
Package: geoknow-generator-ui
2-
Version: 1.2.0
1+
Package: deer-service
2+
Version: 0.1.1
33
Section: web
44
Priority: extra
55
Architecture: all
6-
Depends: virtuoso-opensource,spring-batch-admin-geoknow,coevolution-debian-package,limes-service,deer-service,triplegeo-service,esta-ld
6+
Depends: tomcat7
77
Maintainer: Alejandra Garcia-Rojas M <[email protected]>
88
Distribution: ldstack-nightly
9-
Homepage: http://stack.linkeddata.org/getting-started/geoknow-generator/
10-
Description: The GeoKnow Generator provides a workbench that integrates of tools
11-
developed within GeoKnow project (http://geoknow.eu/),
12-
and are part of the Linked Data Stack (http://stack.linkeddata.org/).
13-
These workbench aim to provide the required methods and tools
14-
to easly integrate and process geospatial data
15-
across a wide range of data sources on the web of data.
9+
Homepage: https://github.com/GeoKnow/DEER-Service
10+
Description: A REST service for DEER (https://github.com/GeoKnow/DEER)
11+
for Linked Data enrichment, developed within GeoKnow project (http://geoknow.eu/),
12+
and part of the Linked Data Stack (http://stack.linkeddata.org/).

src/main/java/eu/geoknow/generator/rest/AuthorizedSessions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
*
6767
* @author alejandragarciarojas
6868
*
69+
* TODO: errors on the server are not given back to the client
6970
*/
7071
@Path("/session")
7172
public class AuthorizedSessions {

src/main/resources/log4j.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ log4j.appender.stdout.Target=System.out
77
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
88
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
99

10-
log4j.logger.eu.geoknow=INFO
10+
log4j.logger.eu.geoknow=DEBUG

src/main/resources/system-components-template.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
:DEERService
133133
a lds:EnrichmentService ;
134134
rdfs:label "Deer" ;
135-
lds:serviceUrl <http://localhost:8080/deer-Service> .
135+
lds:serviceUrl <http://localhost:8080/deer-service/> .
136136

137137
:OntoWiki
138138
a lds:StackComponent ;

src/main/webapp/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@
206206
<script src="modal-forms/modal-id-label-controller.js"></script>
207207

208208
<script src="modal-forms/workbench/modal-job-controller.js"></script>
209-
<script src="modal-forms/workbench/modal-limes-job-controller.js"></script>
210209
<script src="modal-forms/settings/modal-roles-controller.js"></script>
211210
<script src="modal-forms/settings/modal-user-controller.js"></script>
212211
<script src="modal-forms/settings/named-graphs/modal-graph-controller.js"></script>

src/main/webapp/js/filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.filter('shortenURI', function(Ns) {
1717
*/
1818
module.filter('formatDate', function() {
1919
return function(date) {
20-
if(date == "") return "";
20+
if(date == null || date == "") return "";
2121
var day = date.substring(8,10);
2222
var month = date.substring(5,7);
2323
var year = date.substring(0,4);

src/main/webapp/js/services/components-service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ module.factory('ComponentsService', function ($http, $q, ConfigurationService) {
2525
// parse the component data to find a service
2626
getComponentService : function(id, component){
2727
var uri = ConfigurationService.getUriBase() + id;
28-
console.log(uri);
28+
2929
for(var i in component.services){
30+
console.log(uri) + " ==?" + component.services[i].uri;
3031
if (component.services[i].uri == uri)
3132
return component.services[i];
3233
}

src/main/webapp/js/services/configuration-service.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ module.factory('ConfigurationService', function ($q, Config, $http, $location, f
220220
getAllEndpoints: function () {
221221
var results = [];
222222
var elements = Config.select("rdf:type", "ontos:SPARQLEndpoint");
223-
console.log(elements);
224223
for (var resource in elements) {
225224
var element = elements[resource];
226225
if(element["rdfs:label"]== undefined) continue;

src/main/webapp/js/services/graph-service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ module.factory("GraphService", function ($http, $q, Config, ConfigurationService
435435
settings[":default-dataset"]["sd:namedGraph"] = [];
436436
settings[":default-dataset"]["sd:namedGraph"].push(parNamedGraph.name);
437437

438+
console.log(response);
439+
console.log(settings);
438440
return Config.write();
439441
});
440442
return promise;

src/main/webapp/js/workbench/dashboard-controller.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
function DashboardCtrl($scope, JobService, ComponentsService, $http, flash, ServerErrorResponse) {
44

5-
var sbaId ="SpringBatch";
6-
var serviceId = "SpringBatchService";
5+
// var sbaId ="SpringBatch";
6+
// var sbaServiceId = "SpringBatchService";
77

8-
ComponentsService.getComponent(sbaId).then(
9-
//success
10-
function(response){
11-
$scope.sba = response;
12-
$scope.service = ComponentsService.getComponentService(serviceId, $scope.sba);
13-
if($scope.service== null)
14-
flash.error="Service not configured: " +serviceId;
15-
},
16-
function(response){
17-
flash.error="Component not configured: " +ServerErrorResponse.getMessage(response);
18-
});
8+
// ComponentsService.getComponent(sbaId).then(
9+
// //success
10+
// function(response){
11+
// $scope.sba = response;
12+
// $scope.sbaService = ComponentsService.getComponentService(sbaServiceId, $scope.sba);
13+
// if($scope.sbaService== null)
14+
// flash.error="Service not configured: " +sbaServiceId;
15+
// },
16+
// function(response){
17+
// flash.error="Component not configured: " +ServerErrorResponse.getMessage(response);
18+
// });
1919

2020
$scope.jobs = [];
2121

@@ -31,6 +31,7 @@ function DashboardCtrl($scope, JobService, ComponentsService, $http, flash, Serv
3131
if($scope.jobs[index].executions == undefined){
3232
JobService.getJob($scope.jobs[index].name).then(
3333
function(response){
34+
console.log(response);
3435
// if(response.executions.status!="COMPLETED" || response.executions.status!="FAILED")
3536
$scope.jobs[index].executions = response.executions;
3637
});

0 commit comments

Comments
 (0)