From: Heikki Levanto Date: Thu, 7 May 2015 11:52:00 +0000 (+0200) Subject: towards LOC-6: Title and author indexes for instances X-Git-Tag: v0.6~38 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=381b86856fcdf134a0459bba5d40ab0a7f478bbb;p=mp-sparql-moved-to-github.git towards LOC-6: Title and author indexes for instances --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index bc64fab..40912c5 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -129,7 +129,17 @@ ?work bf:contributor ?c . ?c bf:label %v FILTER(contains(%v, %s)) - + + + + { + ?work bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + } UNION { + ?work bf:contributor ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + } + @@ -247,17 +257,104 @@ - + ?inst bf:title %v FILTER(contains(%v, %s)) - + ?inst bf:instanceTitle ?it . ?it bf:titleValue %v FILTER(contains(%v, %s)) + + + ?inst bf:titleStatement %v FILTER(contains(%v, %s)) + + + + + { + ?inst bf:instanceTitle ?it . + ?it bf:titleValue %v FILTER(contains(%v, %s)) + } UNION { + ?inst bf:title %v FILTER(contains(%v, %s)) + } + + + + + + ?inst bf:instanceTitle ?it . + ?it bf:subtitle %v FILTER(contains(%v, %s)) + + + + ?inst bf:instanceTitle ?it . + ?it bf:partTitle %v FILTER(contains(%v, %s)) + + + + + + { + ?inst bf:title %v FILTER(contains(%v, %s)) + } UNION { + ?inst bf:titleStatement %v FILTER(contains(%v, %s)) + } UNION { + ?inst ?titlerel ?it . + ?it a bf:Title + { + ?it bf:titleValue %v FILTER(contains(%v, %s)) + } UNION { + ?it bf:partTitle %v FILTER(contains(%v, %s)) + } UNION { + ?it bf:subtitle %v FILTER(contains(%v, %s)) + } + } + + + + + ?inst bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + + + + ?inst bf:instanceOf ?work . + ?work bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + + + + ?inst bf:instanceOf ?work . + ?work bf:contributor ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + + + + ?inst bf:contributor ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + + + + { + ?inst bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + } UNION { + ?inst bf:contributor ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + } UNION { + ?inst bf:instanceOf ?work . + ?work bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + } UNION { + ?inst bf:instanceOf ?work . + ?work bf:contributor ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + } +