Changeset 37859
- Timestamp:
- 2023-07-30T16:20:49+12:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/apache-jena/trunk/src/README.txt
r37298 r37859 86 86 http://mydomain.org/greenstone3/library 87 87 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/ 88 which, using Apache Rewrite rules, is redirected 89 to 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 104 For this type of setup, the Fuseki triplstore can be accessed via: 105 106 http://mydomain.org/fuseki3 96 107 97 108 98 109 A useful page to visit to test out your triple store is: 99 110 100 https://mydomain.org/ greenstone3-lod3/dataset.html111 https://mydomain.org/fuseki3/dataset.html 101 112 102 113 Make sure for 'dataset' you have the drop-down menu on: … … 153 164 <a href="?query={$query}&output=xml&stylesheet=%2Fxml-to-html-links.xsl"> 154 165 => 155 <a href="?query={$query}&output=xml&stylesheet=/greenstone3-lod3/%2Fxml-to-html-links.xsl"> 166 <a href="?query={$query}&output=xml&stylesheet=/fuseki3/%2Fxml-to-html-links.xsl"> 167 168 Then copy: 169 170 cp packages/apache-jena-fuseki-3.17.0/webapp/xml-to-html-links.xsl $GSDL3SRCHOME/packages/tomcat/webapps/fuseki3/. 156 171 157 172 … … 167 182 To run a SPARQL query directly, you would do: 168 183 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= 170 185 171 186 For a proxied install you would (continuing the example) do: 172 187 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= 174 189 175 190 Factoring in these details, it is possible to setup a transform/page/sparql.xsl page in Greenstone3 that is fully operational, 176 191 even 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 !!!!!! 177 199 178 200 One 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.