From: Heikki Levanto Date: Tue, 17 Feb 2015 13:32:41 +0000 (+0100) Subject: MPSPARQL-7: kw search by UNION of title, author, and subject X-Git-Tag: v0.4~11 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=b34de1b90e4a5bdf9bc0970a26ba2b29ffe4b8d5;p=mp-sparql-moved-to-github.git MPSPARQL-7: kw search by UNION of title, author, and subject --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 477eb24..db8aae6 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -21,6 +21,12 @@ ?wt bf:titleValue %v FILTER(contains(%v, %s)) ?creator bf:label %v FILTER(contains(%v, %s)) ?subject bf:label %v FILTER(contains(%v, %s)) + { + { ?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)) } + } + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns