You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26-9Lines changed: 26 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,21 +12,35 @@ These option will not install any integrated component from the stack and you re
12
12
13
13
## Configuration
14
14
15
-
1. Edit the `src/webapp/js/config.js` and modify variables:
16
-
17
-
var ENDPOINT = "http://localhost:8890/sparql";
18
-
var NS = "http://localhost/resource/";
19
-
var GRAPH_URI = "http://localhost/resource/settingsGraph";
15
+
### Application configuration
16
+
17
+
1. You can editt the following default variables in `src/webapp/js/config.js`:
18
+
19
+
// the public and authenticated enpoints that will be used by the application
20
+
var AUTH_ENDPOINT = "http://generator.geoknow.eu:8890/sparql-auth";
21
+
var PUBLIC_ENDPOINT = "http://generator.geoknow.eu:8890/sparql";
22
+
// if new resorces are created they will use this name space, and it can be changed
23
+
var NS = "http://generator.geoknow.eu/resource/";
24
+
// this is the graph where settings are stored, it doesnt change, and independent on the Namespace
25
+
var DEFAULT_SETTINGS_GRAPH = "http://generator.geoknow.eu/resource/settingsGraph";
26
+
// SETTINGS_GRAPH is initalized with DEFAULT_SETTINGS_GRAPH, but can be changed with setGraph,
27
+
var SETTINGS_GRAPH = DEFAULT_SETTINGS_GRAPH;
28
+
// Create a graph for groups of users
29
+
var GROUPS_GRAPH = "http://generator.geoknow.eu/resource/groupsGraph";
20
30
21
31
Note that the endpoint has to support [UPDATE](http://www.w3.org/TR/2013/REC-sparql11-update-20130321/) service and [Graph Store HTTP Protocol](http://www.w3.org/TR/2013/REC-sparql11-http-rdf-update-20130321/)
22
32
23
-
2. Create a graph named as the GRAPH_URI variable in the application ENDPOINT
24
-
3. Edit and load the configuration files provided in `src/main/resources` these files stand for the follwing:
33
+
2. Create the DEFAULT_SETTINGS_GRAPH in the application ENDPOINT
34
+
35
+
3. Edit the configuration files provided in `src/main/resources` these files stand for the follwing:
25
36
* ldsi-schema.ttl : a schema for integrating tools form the linked data stack
26
37
* generator-ontology.ttl : a schema for managing data sources and datasets in the GeoKnow Generator
27
-
* geoknow-settings.ttl : description of integrated services, this may depend on the integration you want to have in your application. It will provide required infomration about the stack components. This file also contains information about some data sources and graphs used in the application (i.e. GraphSettings)
38
+
* geoknow-initial-settings.ttl : description of integrated services, this may depend on the integration you want to have in your application. It will provide required infomration about the stack components. This file also contains information about some data sources and graphs used in the application (i.e. GraphSettings)
39
+
40
+
And load these files in the DEFAULT_SETTINGS_GRAPH
41
+
42
+
4. Load the generator-accounts-ontology.ttl in to the GROUPS_GRAPH.
28
43
29
-
30
44
## Optional Extra Configutation
31
45
32
46
Depending on the components you use in the Generator some extra configurations may be required.
@@ -43,6 +57,9 @@ If you have a Virtuoso Endpoint, you can configure the following:
43
57
44
58
2.[Enable CORS for Virtuoso](http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtTipsAndTricksCORsEnableSPARQLURLs) SPARQL endpoint.
0 commit comments