Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:bergie/VIE

  • Loading branch information...
commit 350c73a4e6a271d01b8844d7c2533cf8de903888 2 parents 6c1eead + fe67566
@bergie authored
Showing with 5 additions and 4 deletions.
  1. +3 −2 src/service/StanbolService.js
  2. +2 −2 test/service/stanbol.js
View
5 src/service/StanbolService.js
@@ -13,6 +13,7 @@
// Furthermore, it gives access to the enhance facilities of
// Stanbol to analyze content and semantically enrich it.
(function(){
+var defaultStanbolUris = ["http://demo.iks-project.eu/stanbolfull", "http://dev.iks-project.eu/stanbolfull"];
// ## VIE.StanbolService(options)
// This is the constructor to instantiate a new service to collect
@@ -31,7 +32,7 @@ VIE.prototype.StanbolService = function(options) {
/* the default name of this service */
name : 'stanbol',
/* you can pass an array of URLs which are then tried sequentially */
- url: ["http://dev.iks-project.eu/stanbolfull"],
+ url: defaultStanbolUris,
timeout : 20000, /* 20 seconds timeout */
namespaces : {
semdeski : "http://www.semanticdesktop.org/ontologies/2007/01/19/nie#",
@@ -361,7 +362,7 @@ VIE.prototype.StanbolConnector = function (options) {
var defaults = {
/* you can pass an array of URLs which are then tried sequentially */
- url: ["http://dev.iks-project.eu/stanbolfull"],
+ url: defaultStanbolUris,
timeout : 20000, /* 20 seconds timeout */
enhancer : {
urlPostfix : "/enhancer",
View
4 test/service/stanbol.js
@@ -51,7 +51,7 @@ module("vie.js - Apache Stanbol Service");
// /cmsadapter/contenthubfeed
-var stanbolRootUrl = [/*"http://134.96.189.108:1025", */"http://dev.iks-project.eu:8081", "http://dev.iks-project.eu/stanbolfull"];
+var stanbolRootUrl = ["http://demo.iks-project.eu/stanbolfull", "http://dev.iks-project.eu/stanbolfull"];
test("VIE.js StanbolService - Registration", function() {
var z = new VIE();
ok(z.StanbolService, "Checking if the Stanbol Service exists.'");
@@ -160,7 +160,7 @@ test("VIE.js StanbolService - Analyze with wrong URL of Stanbol", function () {
var z = new VIE();
ok (z.StanbolService);
equal(typeof z.StanbolService, "function");
- var wrongUrls = ["http://www.this-is-wrong.url/", "http://dev.iks-project.eu/stanbolfull"];
+ var wrongUrls = ["http://www.this-is-wrong.url/", "http://dev.iks-project.eu/stanbolfull", "http://demo.iks-project.eu/stanbolfull"];
z.use(new z.StanbolService({url : wrongUrls}));
stop();
z.analyze({element: elem}).using('stanbol').execute().done(function(entities) {
Please sign in to comment.
Something went wrong with that request. Please try again.