2e53a3147111270d3fc34b581d294ee45cc1c875
[mp-sparql-moved-to-github.git] / bibframe / triplestore.xml
1 <filters  xmlns="http://indexdata.com/metaproxy">
2   <filter type="sparql">
3     <db path="work" uri="http://bibframe.indexdata.com/sparql/" schema="sparql-results">
4       <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
5       <prefix>bf: http://bibframe.org/vocab/</prefix>
6       <form>SELECT DISTINCT ?work ?wtitle ?creatorlabel ?subjectlabel</form>
7       <criteria>?work a bf:Work</criteria>
8
9       <criteria>?work bf:workTitle ?wt</criteria>
10       <criteria>?wt bf:titleValue ?wtitle</criteria>
11       <index type="4">?wt bf:titleValue %v FILTER(contains(%v, %s))</index>
12       <criteria>?work bf:creator ?creator</criteria>
13       <criteria>?creator bf:label ?creatorlabel</criteria>
14       <index type="1003">?creator bf:label %v FILTER(contains(%v, %s))</index>
15       <criteria>?work bf:subject ?subject</criteria>
16       <criteria>?subject bf:label ?subjectlabel</criteria>
17       <index type="21">?subject bf:label %v FILTER(contains(%v, %s))</index>
18     </db>
19     <db path="works" uri="http://bibframe.indexdata.com/sparql/" schema="rdf">
20       <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
21       <prefix>bf: http://bibframe.org/vocab/</prefix>
22       <form>CONSTRUCT {  ?work bf:title ?title . ?work bf:author ?creator . ?work bf:instanceTitle ?it }</form>
23       <criteria>?work a bf:Work</criteria>
24
25       <criteria>?work bf:workTitle ?wt</criteria>
26       <criteria>?wt bf:titleValue ?wtitle</criteria>
27       <index type="4">?wt bf:titleValue %v FILTER(contains(%v, %s))</index>
28       <criteria>?work bf:creator ?creator</criteria>
29       <criteria>?creator bf:label ?creatorlabel</criteria>
30       <index type="1003">?creator bf:label %v FILTER(contains(%v, %s))</index>
31       <criteria>?work bf:subject ?subject</criteria>
32       <criteria>?subject bf:label ?subjectlabel</criteria>
33       <index type="21">?subject bf:label %v FILTER(contains(%v, %s))</index>
34     </db>
35     <db path="instance" uri="http://bibframe.indexdata.com/sparql/" schema="sparql-results">
36       <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>
37       <prefix>bf: http://bibframe.org/vocab/</prefix>
38       <form>SELECT DISTINCT ?instance ?title ?format</form>
39       <criteria>?instance a bf:Instance</criteria>
40
41       <criteria>?instance bf:title ?title</criteria>
42       <index type="4">?instance bf:title %v FILTER(contains(%v, %s))</index>
43       <criteria>?instance bf:format ?format</criteria>
44       <index type="1013">?instance bf:format %s</index>
45
46     </db>
47   </filter>
48   <filter type="log">
49     <message>http</message>
50     <category apdu="true"/>
51   </filter>
52   <filter type="http_client">
53     <x-forwarded-for>true</x-forwarded-for>
54   </filter>
55 </filters>