X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bibframe%2Ftriplestore.xml;h=477eb24b44379454ed5b29d2204142e63d30db09;hb=2ba1be81c6e39a049ea5ae80aa999dd8e0d2efae;hp=2e53a3147111270d3fc34b581d294ee45cc1c875;hpb=3239fe704efb9e3725bdb04334392a3dbbb9b71a;p=mp-sparql-moved-to-github.git diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 2e53a31..477eb24 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -6,14 +6,20 @@
SELECT DISTINCT ?work ?wtitle ?creatorlabel ?subjectlabel
?work a bf:Work - ?work bf:workTitle ?wt - ?wt bf:titleValue ?wtitle + OPTIONAL { + ?work bf:workTitle ?wt . + ?wt bf:titleValue ?wtitle } + + OPTIONAL { + ?work bf:creator ?creator . + ?creator bf:label ?creatorlabel } + + OPTIONAL { + ?work bf:subject ?subject . + ?subject bf:label ?subjectlabel } + ?wt bf:titleValue %v FILTER(contains(%v, %s)) - ?work bf:creator ?creator - ?creator bf:label ?creatorlabel ?creator bf:label %v FILTER(contains(%v, %s)) - ?work bf:subject ?subject - ?subject bf:label ?subjectlabel ?subject bf:label %v FILTER(contains(%v, %s))