Changeset 34683


Ignore:
Timestamp:
2021-01-20T18:14:32+13:00 (3 years ago)
Author:
davidb
Message:

Updated readme file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/apache-jena/trunk/src/README.txt

    r34642 r34683  
    44  ./CASCADE-MAKE.sh
    55
    6 Note: Jena is a pure Java code base, and the relevant compiled jar
    7       files are bundled with this extension, so no actual compilation
    8       is needed.  The main task CASCADE-MAKE.sh does is to untar the
    9       'binary' files, and setup them up in appropriate top-level '
    10       lib' folder (for jar files) etc so Greenstone can find them
     6
     7For interative experiments with the Triplestore, you can then visit
     8the home page:
     9
     10  http://localhost:3030/
     11
     12Go to the control panel:
     13
     14  http://localhost:3030/control-panel.tpl
     15
     16The control panel lets you choose which dataset to work with through a
     17drop-down menu.  For the Greenstone extension installation there
     18should only be one:
     19
     20  /greenstone
     21
     22Pressing 'select' triggers a POST action to:
     23
     24  http://localhost:3030/$/dataset
     25 
     26which triggers a redirect (through setting 'Location:' in the respose header) to:
    1127
    1228
    13       In case it is ever needed, the companion source code is in 'src'
    14       directory (taken from the Apache Jena website, matched to the binary
    15       version).  For source code, there was only a zip version of the file
    16       to download.
     29  http://localhost:3030/sparql.tpl
    1730
    18       To run the command-line client programs, such as 's-put', this
    19       requires Ruby to be installed.  The source code for this is provided
    20       in the 'packages' directory, and compiled up and installed as part of
    21       running ./CASCADE-MAKE.sh
     31
     32A generic query to try out is:
     33
     34  select * where { ?s ?p ?o } limit 100
     35
     36
     37#----
     38# ReverseProxying
     39#----
     40
     41If serving your Greenstone3 through a public facing web server, such as Apache2,
     42then the installed '.tpl' files and the Location redirects don't work.  Introducing
     43a base tag into the header such as:
     44
     45<base href="/greenstone3-lod/" />
     46
     47and changing the control-panel.tpl form action to be:
     48
     49 <form action="/greenstone3-lod/${action}" method="post">
     50 
     51helps a bit, but the Location redirect is still an issue.
     52
     53Bottom-line to run a SPARQL query directly, (for localhost) you would do:
     54
     55  http://localhost:3030/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
     56
     57For a proxied install you would (continuing the example) do:
     58
     59  http://sowemustthink.space/greenstone3-lod/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
     60 
     61
     62#----
     63# Note about Jena code:
     64#----
     65
     66  Jena is a pure Java code base, and the relevant compiled jar files
     67  are bundled with this extension, so no actual compilation is needed.
     68  The main task CASCADE-MAKE.sh does is to untar the 'binary' files,
     69  and setup them up in appropriate top-level ' lib' folder (for jar
     70  files) etc so Greenstone can find them
     71
     72  In case it is ever needed, the companion source code is in 'src'
     73  directory (taken from the Apache Jena website, matched to the binary
     74  version).  For source code, there was only a zip version of the file
     75  to download.
     76
     77   To run the command-line client programs, such as 's-put', this
     78   requires Ruby to be installed.  The source code for this is
     79   provided in the 'packages' directory, and compiled up and installed
     80   as part of running ./CASCADE-MAKE.sh
    2281     
    2382     
Note: See TracChangeset for help on using the changeset viewer.