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