MPSPARQL-7: kw search by UNION of title, author, and subject
authorHeikki Levanto <heikki@indexdata.dk>
Tue, 17 Feb 2015 13:32:41 +0000 (14:32 +0100)
committerHeikki Levanto <heikki@indexdata.dk>
Tue, 17 Feb 2015 13:32:41 +0000 (14:32 +0100)
bibframe/triplestore.xml

index 477eb24..db8aae6 100644 (file)
       <index type="4">?wt bf:titleValue %v FILTER(contains(%v, %s))</index>
       <index type="1003">?creator bf:label %v FILTER(contains(%v, %s))</index>
       <index type="21">?subject bf:label %v FILTER(contains(%v, %s))</index>
+      <index type="1016"> { 
+                { ?wt bf:titleValue %v FILTER(contains(%v, %s)) } 
+          UNION { ?creator bf:label %v FILTER(contains(%v, %s)) } 
+          UNION { ?subject bf:label %v FILTER(contains(%v, %s)) } 
+          }
+      </index>
     </db>
     <db path="works" uri="http://bibframe.indexdata.com/sparql/" schema="rdf">
       <prefix>rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns</prefix>