From: Heikki Levanto Date: Mon, 4 May 2015 12:22:06 +0000 (+0200) Subject: LOC-6: Author indexes X-Git-Tag: v0.6~40 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=39809dcbb979cbf8e462a035e798b26a2372315e;p=mp-sparql-moved-to-github.git LOC-6: Author indexes --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index c48f6c8..72c98e7 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -97,12 +97,23 @@ } - ?work bf:creator ?c . - ?c bf:label %v FILTER(contains(%v, %s)) + + + ?work bf:creator ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + + + + ?work bf:contributor ?c . + ?c bf:label %v FILTER(contains(%v, %s)) + + + ?work bf:subject ?subject . ?subject bf:label %v FILTER(contains(%v, %s)) - + + CONSTRUCT { ?work ?rel ?subj } WHERE { @@ -111,7 +122,9 @@ ?work ?rel ?obj FILTER( str(?work) = %s ) } - + + + CONSTRUCT { ?work ?rel ?obj . ?obj ?rel1 ?obj1 . ?obj1 ?rel2 ?obj2 . @@ -134,7 +147,9 @@ ?work ?rel ?obj FILTER( str(?work) = %s ) } - + + + CONSTRUCT { %u ?rel ?wobj1 . ?wobj1 ?wrel1 ?wobj2 . ?wobj2 ?wrel2 ?wobj3 . @@ -148,7 +163,7 @@ the linking triplet will get included like any others --> ?inst bf:instanceOf %u } - &workfull; + &workfull; OPTIONAL { ?wobj ?wrel1 ?wobj1 MINUS { ?wobj a bf:Work }