Changeset 37859


Ignore:
Timestamp:
2023-07-30T16:20:49+12:00 (9 months ago)
Author:
davidb
Message:

Transitioning to GS3 embedded Tomcat setup with /fuseki3

File:
1 edited

Legend:

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

    r37298 r37859  
    8686  http://mydomain.org/greenstone3/library
    8787
    88 Then add to the Apache2 configuration file:
    89 
    90     ProxyPass        /greenstone3-lod3/ http://localhost:4040/
    91     ProxyPassReverse /greenstone3-lod3/ http://localhost:4040/
    92 
    93 You can now visit the interactive interface as:
    94 
    95     http://mydomain.org/greenstone3-lod3/
     88which, using Apache Rewrite rules, is redirected
     89to the packages/tomcat instance that ships with Greenstone3 with:
     90
     91#----
     92 # Make sure web sockets get passed on to 'ws://...'
     93        RewriteEngine on
     94        #
     95        RewriteCond %{HTTP:Upgrade} =websocket
     96        RewriteRule /(.*) ws://localhost:8383/$1 [P,L]
     97        RewriteRule ^/$ https://%{SERVER_NAME}/greenstone3/library [R,L]
     98        #
     99        RewriteCond %{HTTP:Upgrade} !=websocket
     100        RewriteRule /(greenstone3|webswing-server|gs-cantaloupe|simpleAnnotationStore|rdf-editor)/(.*) http://localhost:8383/$1/$2 [P,L]
     101#----
     102
     103
     104For this type of setup, the Fuseki triplstore can be accessed via:
     105
     106  http://mydomain.org/fuseki3
    96107
    97108
    98109A useful page to visit to test out your triple store is:
    99110
    100     https://mydomain.org/greenstone3-lod3/dataset.html
     111    https://mydomain.org/fuseki3/dataset.html
    101112
    102113Make sure for 'dataset' you have the drop-down menu on:
     
    153164    <a href="?query={$query}&amp;output=xml&amp;stylesheet=%2Fxml-to-html-links.xsl">
    154165=>
    155     <a href="?query={$query}&amp;output=xml&amp;stylesheet=/greenstone3-lod3/%2Fxml-to-html-links.xsl">
     166    <a href="?query={$query}&amp;output=xml&amp;stylesheet=/fuseki3/%2Fxml-to-html-links.xsl">
     167
     168Then copy:
     169
     170    cp packages/apache-jena-fuseki-3.17.0/webapp/xml-to-html-links.xsl $GSDL3SRCHOME/packages/tomcat/webapps/fuseki3/.
    156171
    157172
     
    167182To run a SPARQL query directly, you would do:
    168183
    169   http://localhost:4040/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
     184  http://localhost:8383/fuseki3/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
    170185
    171186For a proxied install you would (continuing the example) do:
    172187
    173   http://mydomain.org/greenstone3-lod/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
     188  http://mydomain.org/fuseki3/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet=
    174189
    175190Factoring in these details, it is possible to setup a transform/page/sparql.xsl page in Greenstone3 that is fully operational,
    176191even in the ReverseProxying situation.
     192
     193
     194!!!!!!!!!
     195****
     196**** From here on, the instructions have not been updated to the newer /fuseki3 embeddedin GS3 Tomcat
     197****
     198!!!!!!
    177199
    178200One key step in sparql.xsl is to updated the form input argument for 'stylesheet' to specify the proxied prefix URL:
Note: See TracChangeset for help on using the changeset viewer.