From 0fc331d6e264de65af7b438316c2f1134a5fdf23 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Fri, 8 May 2015 16:11:48 +0200 Subject: [PATCH] LOC-6: isbn index: Check we have a literal before substring --- bibframe/triplestore.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 7fd29fd..eb5db31 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -326,14 +326,14 @@ - + { ?thing bf:isbn10 %v - FILTER(contains(str(%v), %s)) + FILTER(isLiteral(%v) && contains(%v, %s)) } UNION { ?thing bf:isbn13 %v - FILTER(contains(str(%v), %s)) + FILTER(isLiteral(%v) && contains(%v, %s)) } UNION { { ?thing bf:isbn10 ?isbn -- 1.7.10.4