Changeset 34683
- Timestamp:
- 2021-01-20T18:14:32+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/apache-jena/trunk/src/README.txt
r34642 r34683 4 4 ./CASCADE-MAKE.sh 5 5 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 7 For interative experiments with the Triplestore, you can then visit 8 the home page: 9 10 http://localhost:3030/ 11 12 Go to the control panel: 13 14 http://localhost:3030/control-panel.tpl 15 16 The control panel lets you choose which dataset to work with through a 17 drop-down menu. For the Greenstone extension installation there 18 should only be one: 19 20 /greenstone 21 22 Pressing 'select' triggers a POST action to: 23 24 http://localhost:3030/$/dataset 25 26 which triggers a redirect (through setting 'Location:' in the respose header) to: 11 27 12 28 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 17 30 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 32 A generic query to try out is: 33 34 select * where { ?s ?p ?o } limit 100 35 36 37 #---- 38 # ReverseProxying 39 #---- 40 41 If serving your Greenstone3 through a public facing web server, such as Apache2, 42 then the installed '.tpl' files and the Location redirects don't work. Introducing 43 a base tag into the header such as: 44 45 <base href="/greenstone3-lod/" /> 46 47 and changing the control-panel.tpl form action to be: 48 49 <form action="/greenstone3-lod/${action}" method="post"> 50 51 helps a bit, but the Location redirect is still an issue. 52 53 Bottom-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 57 For 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 22 81 23 82
Note:
See TracChangeset
for help on using the changeset viewer.