source: gs3-installations/eurovision-lod/trunk/sites/eurovision/BUILDING-FROM-IMPORT.txt

Last change on this file was 35161, checked in by davidb, 3 years ago

Change in response to testing

File size: 2.5 KB
Line 
1=======================================
2| Eurovision -- Let it Sparkle/Sparql |
3=======================================
4| Preparing and Building ESC content |
5---------------------------------------
6
7--
81. 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--
172.Go to your eurovision collection directory
18--
19
20For example:
21
22 cd $GSDL3SRCHOME/web/sites/eurovision-lod/collet/eurovision
23
24--
253. Setup collection/site config settings and unpack import files
26--
27
28Create a suitable _local_collect_config.sh file from its '.in' counterpart:
29
30 cp _local_collect_config.sh.in _local_collect_config.sh
31
32For the servlet.xml values previously set (CONFIGURE.txt) no further
33editing of _local_collect_config.sh is needed.
34
35
36--
374. 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
474.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
584.2: Edit transform/layout/header.xsl
59
60Change:
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
68To:
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--
785. 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
Note: See TracBrowser for help on using the repository browser.