From: Heikki Levanto Date: Tue, 17 Feb 2015 13:56:20 +0000 (+0100) Subject: MPSPARQL-7: More generic keyword search X-Git-Tag: v0.4~7 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3b8f82551458bf8243c7ed12743516e9e480e6fd;p=mp-sparql-moved-to-github.git MPSPARQL-7: More generic keyword search Searches any terms that seem to relate to the $work in question --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index ff4498a..dcfbc93 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -27,9 +27,8 @@ ?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)) } + ?work ?op1 ?child . + ?child ?op2 ?val FILTER(contains(STR(?val), %s)) } GROUP BY $work