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

Commit b81acca

Browse files
committed
refactoring java code
1 parent bfa3f74 commit b81acca

File tree

14 files changed

+647
-344
lines changed

14 files changed

+647
-344
lines changed

README.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,35 @@ These option will not install any integrated component from the stack and you re
1212

1313
## Configuration
1414

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";
2030

2131
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/)
2232

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:
2536
* ldsi-schema.ttl : a schema for integrating tools form the linked data stack
2637
* 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.
2843

29-
3044
## Optional Extra Configutation
3145

3246
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:
4357

4458
2. [Enable CORS for Virtuoso](http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtTipsAndTricksCORsEnableSPARQLURLs) SPARQL endpoint.
4559

60+
### Authentication configuration
61+
62+
4663

4764
### Using OntoWiki-Virtuoso
4865

pom.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@
9292
</plugin>
9393
<!-- Maven Tomcat Plugin -->
9494
<plugin>
95-
<groupId>org.codehaus.mojo</groupId>
96-
<artifactId>tomcat-maven-plugin</artifactId>
97-
<configuration>
98-
<url>http://127.0.0.1:8080/manager/text</url>
99-
<server>tomcat</server>
95+
<version>1.1</version>
96+
<groupId>org.codehaus.mojo</groupId>
97+
<artifactId>tomcat-maven-plugin</artifactId>
98+
<configuration>
99+
<url>http://127.0.0.1:8080/manager/text</url>
100+
<server>tomcat</server>
100101
<path>/${project.build.finalName}</path>
101102
</configuration>
102103
</plugin>

0 commit comments

Comments
 (0)