X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=blobdiff_plain;f=bibframe%2Ftriplestore.xml;fp=bibframe%2Ftriplestore.xml;h=8de1293cced602c760d35d246bd2632023261580;hp=25fab14cb9dd16072a19906a9f9b510b0b90e44c;hb=cd1e5e0f93b8d769e9b19e739c64f6de321cf747;hpb=f46a54721c067a4146453148774dfeb4c17a6a40 diff --git a/bibframe/triplestore.xml b/bibframe/triplestore.xml index 25fab14..8de1293 100644 --- a/bibframe/triplestore.xml +++ b/bibframe/triplestore.xml @@ -24,11 +24,10 @@ CONSTRUCT { - ?thing ?rel ?subj + %u ?rel ?subj } WHERE { - ?thing ?rel ?subj . - ?thing ?rel ?subj FILTER( str(?thing) = %s ) + %u ?rel ?subj . } @@ -324,11 +323,11 @@ } WHERE { %u a bf:Instance . - %u ?irel1 ?iobj1 + %u ?irel1 ?iobj1 . OPTIONAL { ?iobj1 ?irel2 ?iobj2 MINUS { ?iobj2 a bf:Work } - MINUS { ?iobj2 a bf:Instance } + MINUS { ?iobj2 a bf:Instance } . OPTIONAL { ?iobj2 ?irel3 ?iobj3 MINUS { ?iobj3 a bf:Work } @@ -336,12 +335,12 @@ } } OPTIONAL { - %u bf:instanceOf ?work - ?work ?wrel1 ?wobj1 + %u bf:instanceOf ?work . + ?work ?wrel1 ?wobj1 . OPTIONAL { ?wobj1 ?wrel2 ?wobj2 MINUS { ?wobj1 a bf:Work } - MINUS { ?wobj1 a bf:Instance } + MINUS { ?wobj1 a bf:Instance } . OPTIONAL { ?wobj2 ?wrel3 ?wobj3 MINUS { ?wobj2 a bf:Work }