Changeset 35159
- Timestamp:
- 2021-05-04T17:46:34+12:00 (3 years ago)
- Location:
- main/trunk/model-sites-dev/eurovision-lod
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/BUILDING.txt
r35157 r35159 2 2 | Eurovision -- Let it Sparkle/Sparql | 3 3 ======================================= 4 | Preparing and Building ESC content|4 | Building Overview | 5 5 --------------------------------------- 6 6 7 -- 8 1. Go to your Greenstone3 home directory 9 -- 7 Even after configuring Greenstone, the nature of this Linked Open Data 8 based collection, means there is still a bit of work to do in building 9 it into a fully functioning collection. Consquently we have broken 10 the Building instructions down into two steps: 10 11 11 [Skip if you have already done previously] 12 In: 12 13 13 source ./gs3-setup.sh14 BUILDING-FROM-IMPORT.txt 14 15 16 we start at the simpler proposition of building the 'eurovision' collection 17 assuming we have all the data we need already prepared and located in 18 the collection 'import' folder. 15 19 16 -- 17 2.Go to your eurovision collection directory 18 -- 20 In: 21 BUILDING-FROM-SCRATCH.txt 19 22 20 For example: 23 we start a stage earlier, and detail how to setup and run the 'prepare' 24 stage. Amongst other things this retrieves the Eurovision data from DBpedia, 25 and unpacks and processes the voting data spreadsheet into a format that 26 Greenstone can ingest. 21 27 22 cd $GSDL3SRCHOME/web/sites/eurovision-lod/collet/eurovision23 24 --25 3. Setup collection/site config settings and unpack import files26 --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.sh31 32 For the servlet.xml values previously set (CONFIGURE.txt) no further33 editing of _local_collect_config.sh is needed.34 35 36 --37 4. Set the public facing URL for the SPARQL endpoint38 --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.js48 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.xsl59 60 Change:61 62 <xsl:variable name="sparqlEndpointHostAndOptPort">localhost:4040</xsl:variable> <!-- **** External IP? ****-->63 <xsl:variable name="sparqlGraphBasePrefix">http://127.0.0.1:8383</xsl:variable>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://127.0.0.1:8383</xsl:variable>71 72 <xsl:variable name="sparqlEndpointPrefix3"></xsl:variable>73 <xsl:variable name="sparqlEndpoint3">http://mydomain.org:4040</xsl:variable> <!-- **** External IP ? **** -->74 75 76 --77 5. Download and untar a copy of the import folder78 --79 [Fast Build Version: TLDR]80 81 wget https://so-we-must-think.space/greenstone3/sites/eurovision-lod/collect/eurovision/import.tar.gz82 tar xvzf import.tar.gz83 84 export FULL_GREENSTONE_URL_PREFIX=http://mydomain.org/greenstone3/library85 86 ./FULL-REBUILD.sh87
Note:
See TracChangeset
for help on using the changeset viewer.