typo
authorHeikki Levanto <heikki@indexdata.dk>
Fri, 8 May 2015 09:40:45 +0000 (11:40 +0200)
committerHeikki Levanto <heikki@indexdata.dk>
Fri, 8 May 2015 09:40:45 +0000 (11:40 +0200)
bibframe/triplestore.xml

index 25fab14..8de1293 100644 (file)
             <!-- Each db is supposed to provide a dedicated BF-F present format -->
             <present type="BF-L">
                 CONSTRUCT {
-                    ?thing ?rel ?subj
+                    %u ?rel ?subj
                 }
                 WHERE {
-                    ?thing ?rel ?subj .
-                    ?thing ?rel ?subj FILTER( str(?thing) = %s )
+                    %u ?rel ?subj .
                 }
             </present>
 
                 }
                 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 }
                         }
                     }
                     OPTIONAL { <!-- Work -->
-                        %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 }