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

Commit 749cee8

Browse files
jjjj
jj
authored and
jj
committed
Updated controllers (Limes, TripleGeo, GeoLift) for saving with
authentication.
1 parent 62b2b66 commit 749cee8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
# Vaadin cache dir
1414
/src/main/webapp/VAADIN/gwt-unitCache
1515
/src/main/webapp/VAADIN/widgetsets
16+
/target

src/main/webapp/js/controllers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ $scope.LaunchLimes = function(){
811811
$scope.save = function(){
812812

813813
var parameters = {
814-
endpoint: ConfigurationService.getSPARQLEndpoint() ,
814+
endpoint: AccountService.getUsername() == null ? ConfigurationService.getPublicSPARQLEndpoint() : ConfigurationService.getSPARQLEndpoint(),
815815
uriBase : ConfigurationService.getUriBase()
816816
};
817817

@@ -1536,7 +1536,7 @@ var GeoliftCtrl = function($scope, $http, ConfigurationService, flash, ServerErr
15361536

15371537
var parameters = {
15381538
rdfFile: "result.ttl",
1539-
endpoint: ConfigurationService.getSPARQLEndpoint(),
1539+
endpoint: AccountService.getUsername()== null ? ConfigurationService.getPublicSPARQLEndpoint() : ConfigurationService.getSPARQLEndpoint(),
15401540
graph: $scope.saveDataset.replace(':', ConfigurationService.getUriBase()),
15411541
uriBase : ConfigurationService.getUriBase(),
15421542
username: AccountService.getUsername()
@@ -2107,7 +2107,7 @@ var TripleGeoCtrl = function($scope, $http, ConfigurationService, flash, ServerE
21072107
var parameters = {
21082108
rdfFile: "result."+fileType,
21092109
fileType: fileType,
2110-
endpoint: ConfigurationService.getSPARQLEndpoint() ,
2110+
endpoint: AccountService.getUsername()==null ? ConfigurationService.getPublicSPARQLEndpoint() : ConfigurationService.getSPARQLEndpoint(),
21112111
graph: $scope.saveDataset.replace(':', ConfigurationService.getUriBase()),
21122112
uriBase : ConfigurationService.getUriBase(),
21132113
username: AccountService.getUsername()

0 commit comments

Comments
 (0)