X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fbook.xml;h=5826b16f2ea75f883a9ccd1841937e2291e037a0;hb=6ef7b5922db33bb0294caf39a18359a97ea9cac8;hp=074516f67ea617d377aac74f54101a67e5509ec5;hpb=fc99a8fd59e8ff0862fabfa7eeeafd1340202498;p=mp-sparql-moved-to-github.git diff --git a/doc/book.xml b/doc/book.xml index 074516f..5826b16 100644 --- a/doc/book.xml +++ b/doc/book.xml @@ -138,6 +138,128 @@ + + 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 + 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. + + + + + Using the service + + Either way, unless you have adjusted the metaproxy configuration, + Metaproxy can be reached on port 9000. Example using yaz-client and + PQF/Type-1: + f @attr 1=bf.anytitle water +Sent searchRequest. +Received SearchResponse. +Search was a success. +Number of hits: 1, setno 1 +records returned: 0 +Elapsed: 0.279441 +Z> s +Sent presentRequest (1+1). +Records: 1 +[work]Record type: XML + + + + ... + +nextResultSetPosition = 0 +Elapsed: 0.256142 +]]> + + + Example using SRU: + + + Reference @@ -175,7 +297,7 @@ along with Metaproxy; see the file LICENSE. If not, write to the Free Software Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - +