1 | =======================================
|
---|
2 | | Eurovision -- Let it Sparkle/Sparql |
|
---|
3 | =======================================
|
---|
4 | | Preparing and Building ESC content |
|
---|
5 | ---------------------------------------
|
---|
6 |
|
---|
7 | --
|
---|
8 | 1. Go to your Greenstone3 home directory
|
---|
9 | --
|
---|
10 |
|
---|
11 | [Skip if you have already done previously]
|
---|
12 |
|
---|
13 | source ./gs3-setup.sh
|
---|
14 |
|
---|
15 |
|
---|
16 | --
|
---|
17 | 2.Go to your eurovision collection directory
|
---|
18 | --
|
---|
19 |
|
---|
20 | For example:
|
---|
21 |
|
---|
22 | cd $GSDL3SRCHOME/web/sites/eurovision-lod/collet/eurovision
|
---|
23 |
|
---|
24 | --
|
---|
25 | 3. Setup collection/site config settings and unpack import files
|
---|
26 | --
|
---|
27 |
|
---|
28 | Create a suitable _local_collect_config.sh file from its '.in' counterpart:
|
---|
29 |
|
---|
30 | cp _local_collect_config.sh.in _local_collect_config.sh
|
---|
31 |
|
---|
32 | For the servlet.xml values previously set (CONFIGURE.txt) no further
|
---|
33 | editing of _local_collect_config.sh is needed.
|
---|
34 |
|
---|
35 |
|
---|
36 | --
|
---|
37 | 4. Set the public facing URL for the SPARQL endpoint
|
---|
38 | --
|
---|
39 |
|
---|
40 | If you are operating a remote server for the DL install (i.e. not localhost)
|
---|
41 | then there are 3 places you need edit to specify the domain name (or IP number)
|
---|
42 | you are using:
|
---|
43 |
|
---|
44 | In the following we assume the domain name of the server is 'mydomain.org'
|
---|
45 |
|
---|
46 |
|
---|
47 | 4.1:Edit js/eurovision.js
|
---|
48 |
|
---|
49 | Near the bottom of this JavaScript file, find the line:
|
---|
50 |
|
---|
51 | var endpoint_url="//localhost:4040/greenstone/query"; // **** External IP? ****
|
---|
52 |
|
---|
53 | And change to:
|
---|
54 |
|
---|
55 | var endpoint_url="//mydomain.org:4040/greenstone/query"; // **** External IP? ****
|
---|
56 |
|
---|
57 |
|
---|
58 | 4.2: Edit transform/layout/header.xsl
|
---|
59 |
|
---|
60 | Change:
|
---|
61 |
|
---|
62 | <xsl:variable name="sparqlEndpointHostAndOptPort">localhost:4040</xsl:variable> <!-- **** External IP? ****-->
|
---|
63 | <xsl:variable name="sparqlGraphBasePrefix">http://localhost:8383</xsl:variable> <!-- **** External IP? ****-->
|
---|
64 |
|
---|
65 | <xsl:variable name="sparqlEndpointPrefix3"></xsl:variable>
|
---|
66 | <xsl:variable name="sparqlEndpoint3">http://localhost:4040</xsl:variable> <!-- **** External IP ? **** -->
|
---|
67 |
|
---|
68 | To:
|
---|
69 | <xsl:variable name="sparqlEndpointHostAndOptPort">mydomain.org:4040</xsl:variable> <!-- **** External IP? ****-->
|
---|
70 | <xsl:variable name="sparqlGraphBasePrefix">http://mydomain.org:8383</xsl:variable> <!-- **** External IP? ****-->
|
---|
71 |
|
---|
72 |
|
---|
73 | <xsl:variable name="sparqlEndpointPrefix3"></xsl:variable>
|
---|
74 | <xsl:variable name="sparqlEndpoint3">http://mydomain.org:4040</xsl:variable> <!-- **** External IP ? **** -->
|
---|
75 |
|
---|
76 |
|
---|
77 | --
|
---|
78 | 5. Download and untar a copy of the import folder
|
---|
79 | --
|
---|
80 | [Fast Build Version: TLDR]
|
---|
81 |
|
---|
82 | wget https://so-we-must-think.space/greenstone3/sites/eurovision-lod/collect/eurovision/import.tar.gz
|
---|
83 | tar xvzf import.tar.gz
|
---|
84 |
|
---|
85 | export FULL_GREENSTONE_URL_PREFIX=http://mydomain.org/greenstone3/library
|
---|
86 |
|
---|
87 | ./FULL-REBUILD.sh
|
---|
88 |
|
---|