X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=blobdiff_plain;f=doc%2Fbook.xml;fp=doc%2Fbook.xml;h=852994c4c508bf2466d8f603b7744f06479c9f22;hp=074516f67ea617d377aac74f54101a67e5509ec5;hb=7eb3871494f13a895f405483dd9b3275f412eadd;hpb=4367170dcca7904746ffe537fccf102341eca6c9
diff --git a/doc/book.xml b/doc/book.xml
index 074516f..852994c 100644
--- a/doc/book.xml
+++ b/doc/book.xml
@@ -138,6 +138,84 @@
+
+ Configuration
+
+ If you have installed mp-sparql as a package or have executed
+ make install from source, sample configuration
+ can be found in /usr/share/mp-sparql/bibframe or
+ /usr/local/share/mp-sparql/bibframe. In the
+ the following /usr/share prefix assumed. Adjust accordingly.
+ The directory contains these files:
+
+
+ triplestore.xml
+
+
+ A mature PQF to SPARQL configuration illustrating a lot of the
+ configuration facilities that are described in the manual
+ page of .
+
+
+
+
+ config-sparql.xml
+
+
+ A full metaproxy configuration file that includes
+ triplestore.xml cofiguration for the
+ mp-sparql filter, enables SRU and CQL to PQF conversion.
+
+
+
+
+ filter-sparql.xml
+
+
+ A partial metaproxy configuration suitable to be enabled in
+ /etc/metaproxy/filters-enabled.
+ This includes triplestore.xml as well.
+
+
+
+
+
+
+ If you want to use the package layout and modular configuration we
+ suggest you use filter-sparql.xml and perform something along the lines of:
+
+ cp /usr/share/mp-sparql/bibframe/filter-sparql.xml /etc/metaproxy/filters-available
+ cp /usr/share/mp-sparql/bibframe/triplestore.xml /etc/metaproxy
+ sudo vi /etc/metaproxy/triplestore.xml
+ ln -s ../filters-available/filter-sparql.xml /etc/metaproxy/filters-enabled
+ service metaproxy restart
+
+ A copy of triplestore.xml is made. Adjust the
+ <defaults uri=.. value to the URI of your
+ triplestore.
+
+
+ If you want to create your own top-level configuration, you can copy
+ config-sparql.xml to any location you like and
+ run metaproxy with that. Something like this:
+
+ mkdir /etc/myconfig
+ cp /usr/share/mp-sparql/bibframe/* /etc/myconfig
+ sudo vi /etc/myconfig/triplestore.xml
+ metaproxy -c /etc/myconfig/config-sparql.xml
+
+ Again, a copy of triplestore.xml is made. Adjust the
+ <defaults uri=.. value to the URI of your
+ triplestore.
+
+
+
+ Do not edit files in /usr/share/mp-sparql/bibframe.
+ They are only samples and will be overwritten by a package update.
+ Instead copy the files away from there if you need to modify them.
+
+
+
Reference