Installation and Setup V3: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Billig (Diskussion | Beiträge) (→WebCts2LE Basic Security) |
Billig (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
== Required Software/Server == | == Required Software/Server == | ||
* files <code>fuseki-cts2le.zip</code> and <code>solr-cts2le.zip</code> are included in the CTS2-LE release | * files <code>fuseki-cts2le.zip</code> and <code>solr-cts2le.zip</code> are included in the CTS2-LE release | ||
| + | |||
| + | |||
=== Fuseki Installation === | === Fuseki Installation === | ||
* unzip <code>fuseki-cts2le.zip</code> to a directory (denoted by <code><F1></code> in the following) | * unzip <code>fuseki-cts2le.zip</code> to a directory (denoted by <code><F1></code> in the following) | ||
| Zeile 7: | Zeile 9: | ||
* run <code>./fuseki start</code> and <code>./fuseki stop</code> subsequently (in order to let directory <code><F2>/run</code> be generated) | * run <code>./fuseki start</code> and <code>./fuseki stop</code> subsequently (in order to let directory <code><F2>/run</code> be generated) | ||
* copy <code><F1>/cts2le.ttl</code> to <code><F2>/run/configuration</code> | * copy <code><F1>/cts2le.ttl</code> to <code><F2>/run/configuration</code> | ||
| + | * copy <code><F1>/log4j.properties</code> to <code><F2>/run</code> | ||
* start command: <code>./fuseki start</code> | * start command: <code>./fuseki start</code> | ||
| + | *: <span style="color:DarkGray">Windows: .\fuseki-server.bat</span> | ||
* shutdown command: <code>./fuseki stop</code> | * shutdown command: <code>./fuseki stop</code> | ||
| + | *: <span style="color:DarkGray">Windows Powershell: ctrl-c</span> | ||
| + | |||
| + | |||
=== Solr Installation === | === Solr Installation === | ||
* unzip <code>solr-cts2le.zip</code> to a directory (denoted by <code><S1></code> in the following) | * unzip <code>solr-cts2le.zip</code> to a directory (denoted by <code><S1></code> in the following) | ||
| Zeile 47: | Zeile 54: | ||
* run service with basic authentication via option flag: <code>./bin/startup.sh -port <port> -basic_auth</code> | * run service with basic authentication via option flag: <code>./bin/startup.sh -port <port> -basic_auth</code> | ||
| + | |||
| + | == Loading Basic/Standard Terminologies == | ||
Version vom 16. April 2019, 18:14 Uhr
Inhaltsverzeichnis
Required Software/Server
- files
fuseki-cts2le.zipandsolr-cts2le.zipare included in the CTS2-LE release
Fuseki Installation
- unzip
fuseki-cts2le.zipto a directory (denoted by<F1>in the following) - unzip
apache-jena-fuseki-3.8.0.zipfromhttps://jena.apache.org/download/(the extracted directoryapache-jena-fuseki-3.8.0is denoted by<F2>in the following) - go to directory
<F2> - run
./fuseki startand./fuseki stopsubsequently (in order to let directory<F2>/runbe generated) - copy
<F1>/cts2le.ttlto<F2>/run/configuration - copy
<F1>/log4j.propertiesto<F2>/run - start command:
./fuseki start- Windows: .\fuseki-server.bat
- shutdown command:
./fuseki stop- Windows Powershell: ctrl-c
Solr Installation
- unzip
solr-cts2le.zipto a directory (denoted by<S1>in the following) - unzip
solr-7.6.0.zipfromhttp://lucene.apache.org/solr/downloads.html(the extracted directorysolr-7.6.0is denoted by<S2>in the following) - go to directory
<S2> - start command:
./bin/solr start -s <S1> - shutdown command:
./bin/solr stop -all
WebCts2LE Installation
- file
WebCts2LE-embedded-jetty.zipis included in the CTS2-LE release
General
- unzip
WebCts2LE-embedded-jetty.zipto a directory (denoted by<W>in the following)
Embedded Jetty Variant
- edit file
<W>/CTS2LE_resources/resources-custom/setting.json. The following fragment shows the relevant lines to adapt:
store: 'fuseki',
storePath: 'http://localhost:3030/cts2le',
luceneMode: 'remote',
luceneIndexPath: 'http://localhost:8983/solr/cts2le',
Be sure that
store='fuseki' andluceneMode='remote' andhost:portof storePath and luceneIndexPath are set to the server endpoints
!!! WebCts2LE does not not run properly if the fuseki or solr endpoint are not running.
- go to directory
<W> - start command:
./bin/startup.sh -port <port> - shutdown command:
./bin/shutdown.sh <port> - navigation ui:
http://<host>:<port>/WebCts2LE
WebCts2LE Basic Security
The Embedded Jetty Variant supports simple security based on Basic Access Authentication for services that modifies the data base (advanced security will not be supported at this architecture level, instead special security components should be placed on top of WebCts2LE). For this purposes an admin role is introduced. Changing security (see HashLoginService at https://www.eclipse.org/jetty/documentation/9.4.x/configuring-security.html for details):
- edit
<W>/conf/basic-realm.properties. It containsusername: password[,rolename ...], e.g.admin: webcts2le-admin,admin. Change username or password if needed.
- run service with basic authentication via option flag:
./bin/startup.sh -port <port> -basic_auth