X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bibframe%2Ftriplestore.xml;h=2e53a3147111270d3fc34b581d294ee45cc1c875;hb=e5b5ae2b4836f76d84aae25c0edf4312b761dae4;hp=7a6f5068536c3eba721cdfcd41e3be836edee3bd;hpb=29b5585d478fd67ca994c6c76bc454a8e24f79f1;p=mp-sparql-moved-to-github.git diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 7a6f506..2e53a31 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -1,9 +1,9 @@ - + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ - DISTINCT ?work ?wtitle ?creatorlabel ?subjectlabel +
SELECT DISTINCT ?work ?wtitle ?creatorlabel ?subjectlabel
?work a bf:Work ?work bf:workTitle ?wt @@ -16,10 +16,26 @@ ?subject bf:label ?subjectlabel ?subject bf:label %v FILTER(contains(%v, %s))
- + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ - DISTINCT ?instance ?title ?format +
CONSTRUCT { ?work bf:title ?title . ?work bf:author ?creator . ?work bf:instanceTitle ?it }
+ ?work a bf:Work + + ?work bf:workTitle ?wt + ?wt bf:titleValue ?wtitle + ?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)) +
+ + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns + bf: http://bibframe.org/vocab/ +
SELECT DISTINCT ?instance ?title ?format
?instance a bf:Instance ?instance bf:title ?title