From: Heikki Levanto Date: Fri, 8 May 2015 14:11:48 +0000 (+0200) Subject: LOC-6: isbn index: Check we have a literal before substring X-Git-Tag: v0.6~25^2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=0fc331d6e264de65af7b438316c2f1134a5fdf23;p=mp-sparql-moved-to-github.git LOC-6: isbn index: Check we have a literal before substring --- 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