From 3b8f82551458bf8243c7ed12743516e9e480e6fd Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Tue, 17 Feb 2015 14:56:20 +0100 Subject: [PATCH] MPSPARQL-7: More generic keyword search Searches any terms that seem to relate to the $work in question --- bibframe/triplestore.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 1.7.10.4