From: Heikki Levanto Date: Wed, 29 Apr 2015 10:43:43 +0000 (+0200) Subject: LOC-7: elementSetName BF-F for "work" X-Git-Tag: v0.5~1^2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=c9757fa62aa6079ffde988098d1f6db4178b2ccb;p=mp-sparql-moved-to-github.git LOC-7: elementSetName BF-F for "work" Also removed old experimental databases now that we have the present queries --- diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 42cfc26..e982768 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -1,8 +1,8 @@ - - + + - - - - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
SELECT ?work ?rel ?subj -
- ?work a bf:Work - ?work ?rel ?obj - ?work ?rel ?obj FILTER( str(?work) = %s ) -
- - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
CONSTRUCT { ?work ?rel ?obj } -
- ?work a bf:Work - ?work ?rel ?obj - ?work ?rel ?obj FILTER( str(?work) = %s ) -
- - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
CONSTRUCT { ?work ?rel ?obj. - ?creator ?crRel ?crObj . - ?subj ?subRel ?subObj } -
- ?work a bf:Work - ?work ?rel ?obj - OPTIONAL { ?work bf:creator ?creator . - ?creator ?crRel ?crObj } - - OPTIONAL { ?work bf:subject ?subj . - ?subj ?subRel ?subObj } - - ?work ?rel ?obj FILTER( str(?work) = %s ) -
- - - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
CONSTRUCT { ?work ?rel ?obj . - ?obj ?rel1 ?obj1 . - ?obj1 ?rel2 ?obj2 . - ?obj2 ?rel3 ?obj3 - } -
- ?work a bf:Work - - ?work ?rel ?obj - OPTIONAL { + + CONSTRUCT { ?work ?rel ?obj . + ?obj ?rel1 ?obj1 . + ?obj1 ?rel2 ?obj2 . + ?obj2 ?rel3 ?obj3 } + WHERE { + ?work a bf:Work . + ?work ?rel ?obj . + OPTIONAL { ?obj ?rel1 ?obj1 MINUS { ?obj a bf:Work } - } - OPTIONAL { + } + OPTIONAL { ?obj1 ?rel2 ?obj2 MINUS { ?obj1 a bf:Work } - } - OPTIONAL { + } + OPTIONAL { ?obj2 ?rel3 ?obj3 MINUS { ?obj2 a bf:Work } - } - ?work ?rel ?obj FILTER( str(?work) = %s ) -
- - - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
DESCRIBE ?work -
- ?work a bf:Work - ?work ?rel ?obj - OPTIONAL { ?work bf:creator ?creator . - ?creator ?crRel ?crObj } - - OPTIONAL { ?work bf:subject ?subj . - ?subj ?subRel ?subObj } - - ?work ?rel ?obj FILTER( str(?work) = %s ) -
- - - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
SELECT - ?work - (sql:GROUP_DIGEST (?wtitle, ' ; ', 1000, 1)) AS ?title - (sql:GROUP_DIGEST (?creatorlabel, ' ; ', 1000, 1))AS ?creator - (sql:GROUP_DIGEST (?subjectlabel, ' ; ', 1000, 1))AS ?subject -
- ?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)) - { - ?work ?op1 ?child . - ?child ?op2 %v FILTER(contains(STR(%v), %s)) } - - GROUP BY $work -
- - - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns - bf: http://bibframe.org/vocab/ -
CONSTRUCT { - ?work bf:title ?wtitle . - ?work bf:instanceTitle ?title . - ?work bf:author ?creator . - ?work bf:subject ?subjectlabel } -
- ?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)) + ?work ?rel ?obj FILTER( str(?work) = %s ) + } +
- rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns