source: main/trunk/model-sites-dev/von-sparql/README@ 29469

Last change on this file since 29469 was 29469, checked in by sjs49, 8 years ago

Added a readme to aid installation of the von-sparql site

File size: 2.6 KB
Line 
1 /////////////////////////////////////////
2 /////// /////////
3 /////// Von-Sparql Site Setup /////////
4 /////// /////////
5/////////////////////////////////////////
6
71. Install Greenstone3 binary
8
9 www.greenstone.org/greenstone3-home
10
112. Checkout Apache Jena into {greenstone_install_dir}/gs2build/ext
12
13 cd {greenstone_install_dir}/gs2build/ext/
14 svn co http://svn.greenstone.org/gs2-extensions/apache-jena/trunk/src apache-jena
15
163. Compile Apache Jena source
17
18 cd apache-jena
19 ./CASCADE_MAKE.sh
20
214. Now gs-triplestore-server can be run from command line to start triple-store server.
22
23 source {greenstone_install_dir}/gs3-setup.sh
24
255. Checkout von-sparql site into your sites directory
26
27 cd {greenstone_install_dir}/web/sites/
28 svn co http://greenstone.org/main/trunk/model-sites/dev/von-sparql von-sparql
29
306. Edit {greenstone_install_dir}/web/WEB-INF/web.xml
31
32 Add a new servlet containing:
33
34 <servlet>
35 <servlet-name>sparql-library</servlet-name>
36 <description>The standard gsdl3 library program</description>
37 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
38 <init-param>
39 <param-name>library_name</param-name>
40 <param-value>sparql-library</param-value>
41 </init-param>
42 <init-param>
43 <param-name>site_name</param-name>
44 <param-value>von-sparql</param-value>
45 </init-param>
46 <init-param>
47 <param-name>interface_name</param-name>
48 <param-value>default</param-value>
49 </init-param>
50 <init-param>
51 <param-name>receptionist_class</param-name>
52 <param-value>DefaultReceptionist</param-value>
53 </init-param>
54 <init-param>
55 <param-name>default_lang</param-name>
56 <param-value>en</param-value>
57 </init-param>
58 </servlet>
59
60
617. Lower down in the web.xml, add a new mapping for your server:
62
63 <servlet-mapping>
64 <servlet-name>sparql-library</servlet-name>
65 <url-pattern>/sparql-library/*</url-pattern>
66 </servlet-mapping>
67
688. Ensure you are running the triple-store server, then build both of the von-sparql collections.
69 Metadata triples will be inserted into the triple store, for large collections this can take some time!
70
71 source {greenstone_install_dir}/gs3-setup.sh
72 full-rebuild.pl -site von-sparql hathitrust-tab
73 full-rebuild.pl -site von-sparql nz-natlib-cat
74
759. Restart web server
76
77 cd {greenstone_install_dir}
78 ant restart
79
8010. Von-Sparql collections can now be accessed through the url
81 http://localhost:8383/greenstone3/sparql-library
82
83 Comparisons can be made through the link placed in the page header or by going to
84 http://localhost:8383/greenstone3/sparql-library/page/compare
Note: See TracBrowser for help on using the repository browser.