From: Adam Dickmeiss Date: Wed, 29 Apr 2015 09:53:35 +0000 (+0200) Subject: Working sub query (uri.schema) MPSPARQL-13 X-Git-Tag: v0.5~3 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=c15f541624500e98bcea49b8a77c24d28d4c434d;p=mp-sparql-moved-to-github.git Working sub query (uri.schema) MPSPARQL-13 --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 6518c1f..4e5ef1f 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -19,7 +19,16 @@ ?work bf:creator ?c . ?c bf:label %v FILTER(contains(%v, %s)) ?work bf:subject ?subject . - ?subject bf:label %v FILTER(contains(%v, %s)) + ?subject bf:label %v FILTER(contains(%v, %s)) + + + CONSTRUCT { ?work ?rel ?subj } + WHERE { + ?work a bf:Work . + ?work ?rel ?subj . + ?work ?rel ?obj FILTER( str(?work) = %s ) + } +