Changeset 35159


Ignore:
Timestamp:
2021-05-04T17:46:34+12:00 (3 years ago)
Author:
davidb
Message:

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

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  
    22| Eurovision -- Let it Sparkle/Sparql |
    33=======================================
    4 | Preparing and Building ESC content  |
     4| Building Overview                   |
    55---------------------------------------
    66
    7 --
    8 1. Go to your Greenstone3 home directory
    9 --
     7Even after configuring Greenstone, the nature of this Linked Open Data
     8based collection, means there is still a bit of work to do in building
     9it into a fully functioning collection.  Consquently we have broken
     10the Building instructions down into two steps:
    1011
    11 [Skip if you have already done previously]
     12In:
    1213
    13   source ./gs3-setup.sh
     14  BUILDING-FROM-IMPORT.txt
    1415
     16we start at the simpler proposition of building the 'eurovision' collection
     17assuming we have all the data we need already prepared and located in
     18the collection 'import' folder.
    1519
    16 --
    17 2.Go to your eurovision collection directory
    18 --
     20In:
     21  BUILDING-FROM-SCRATCH.txt
    1922
    20 For example:
     23we start a stage earlier, and detail how to setup and run the 'prepare'
     24stage.  Amongst other things this retrieves the Eurovision data from DBpedia,
     25and unpacks and processes the voting data spreadsheet into a format that
     26Greenstone can ingest.
    2127
    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://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 folder
    78 --
    79   [Fast Build Version: TLDR]
    80 
    81   wget https://so-we-must-think.space/greenstone3/sites/eurovision-lod/collect/eurovision/import.tar.gz
    82   tar xvzf import.tar.gz
    83 
    84   export FULL_GREENSTONE_URL_PREFIX=http://mydomain.org/greenstone3/library
    85 
    86   ./FULL-REBUILD.sh
    87 
Note: See TracChangeset for help on using the changeset viewer.