<!-- The BF-L present format is the same for everything -->
- <!-- Each db is supposed to provide a dedicated BF-F present format -->
+ <!-- Each db is supposed to provide a dedicated BF-V 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>
<!-- Present formats -->
<!-- BF-L comes from the "thing" template -->
- <!-- BF-F expands all links, even to instances but not other works -->
- <present type="BF-F">
+ <!-- BF-V expands all links, even to instances but not other works -->
+ <present type="BF-V">
CONSTRUCT {
%u ?rel ?wobj1 .
?wobj1 ?wrel1 ?wobj2 .
<!-- Present formats. BF-L comes from "thing" -->
<!-- Full instance, with the related work too -->
- <present type="BF-F">
+ <present type="BF-V">
CONSTRUCT {
%u ?irel1 ?iobj1 .
?iobj1 ?irel2 ?iobj2 .
}
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 }
<!-- but have different "any" indexes -->
<db path="smallbody" include="thing">
- <present type="BF-F">
+ <present type="BF-V">
<!-- I don't think we need more than one level -->
<!--for these simple databases -->
CONSTRUCT {