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

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

Initial set of draft notes for the two different README files on BUILDING

File size: 2.1 KB
Line 
1=======================================
2| Eurovision -- Let it Sparkle/Sparql |
3=======================================
4| Preparing and Building ESC content |
5---------------------------------------
6
7--
81. Follow Steps 1-4 in BUILDING-FROM-IMPORT.txt
9--
10
11You do not need to do the last step which involves using 'wget' to
12download import.tar.gz, unpack it, and then fully build the
13collection.
14
15Following these instructions you will populate the import
16directory directly through running the prepare scripts.
17
18--
192. Take a look at the PREPARE.sh script
20--
21
22If not already done so, ensure you have source Greenstone3's
23gs3-setup.sh and changed to the 'eurovision' collection's directory
24
25 cd <greenstone3-src-home>
26 source ./gs3-setup.sh
27 cd web/sites/eurovision-lod/collect/eurovision
28
29Now take a look at the PREPARE.sh script:
30
31 cat PREPARE.sh
32
33This is a convenience script that strings together a set of of scripts in
34the 'prepare' directory for downloading and unzipping primary soure data,
35which is then processed and turned into a format the Greenstone can use.
36
37Each script can be run on its own from the command-line, just make sure
38you are in the 'prepare' folder when you run them. The names of the
39scripts seek to be informative over what operation they do. For the
40most part they come in pairs: the first generates the data within
41the 'prepare' area, and then the second script transforms and copies
42it into the 'import' directory.
43
44
45 ./01-DOWNLOAD-ESC-LOD-DATA.sh
46 ./02-EXPLODE-SPARQLRESULTS-TO-IMPORT.sh
47
48 ./03-GEN-VOTING-METADATA.sh
49 ./04-COPY-VOTING-METADATA-TO-IMPORT.sh
50
51 ./05-PARSE-ADDITIONAL-METADATA-FROM-WIKIPEDIA.sh
52 ./06-COPY-PARSED-ADDITIONAL-METADATA-TO-IMPORT.sh
53
54 ./07-DOWNLOAD-SPOTIFY-LOD-DATA.sh
55 ./08-EXPLODE-SPOTIFY-SPARQLRESULTS-TO-IMPORT.sh
56
57 ./09-GEN-PROBLEM-LOD-LISTS.sh
58
59
60
61
62--
634. Run PREPARE.sh followed by FULL-REBUILD.sh
64--
65
66
67 export FULL_GREENSTONE_URL_PREFIX=http://mydomain.org/greenstone3/library
68
69 cd prepare && ./PREPARE.sh && cd ..
70
71 ./FULL-REBUILD.sh
72
Note: See TracBrowser for help on using the repository browser.