projects
/
mp-sparql-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
992938f
)
LOC-6: Move bf.ref into "thing" so it applies everywhere
author
Heikki Levanto
<heikki@indexdata.dk>
Wed, 13 May 2015 11:32:11 +0000
(13:32 +0200)
committer
Heikki Levanto
<heikki@indexdata.dk>
Wed, 13 May 2015 11:32:11 +0000
(13:32 +0200)
bibframe/triplestore.xml
patch
|
blob
|
history
diff --git
a/bibframe/triplestore.xml
b/bibframe/triplestore.xml
index
1d02d80
..
3950569
100644
(file)
--- a/
bibframe/triplestore.xml
+++ b/
bibframe/triplestore.xml
@@
-26,6
+26,14
@@
?thing a %t
</index>
?thing a %t
</index>
+ <!-- Find all nodes that refer to the given uri -->
+ <!-- useful after finding uris in the "small" bases -->
+ <!-- direct references only -->
+ <index type="bf.ref">
+ ?thing %v_rel %u
+ </index>
+
+
<!-- The BF-L present format is the same for everything -->
<!-- Each db is supposed to provide a dedicated BF-V present format -->
<present type="BF-L">
<!-- The BF-L present format is the same for everything -->
<!-- Each db is supposed to provide a dedicated BF-V present format -->
<present type="BF-L">
@@
-48,7
+56,7
@@
<!-- This way, we use a different variable for each index clause, and -->
<!-- do not get into trouble if we have an AND between two of the same kind -->
<db path="smallindex">
<!-- This way, we use a different variable for each index clause, and -->
<!-- do not get into trouble if we have an AND between two of the same kind -->
<db path="smallindex">
- <index type="bf.personX">
+ <index type="bf.person">
?thing ?rel %vx .
%vx a bf:Person .
%vx bf:label %v FILTER(contains(%v, %s))
?thing ?rel %vx .
%vx a bf:Person .
%vx bf:label %v FILTER(contains(%v, %s))
@@
-206,13
+214,6
@@
%v_inst bf:instanceOf ?thing FILTER ( %v_inst = %u)
</index>
%v_inst bf:instanceOf ?thing FILTER ( %v_inst = %u)
</index>
- <!-- Find all works that refer to the given uri -->
- <!-- useful after finding uris in the "small" bases -->
- <!-- direct references only -->
- <index type="bf.ref">
- ?thing %v_rel %u
- </index>
-
<!-- Present formats -->
<!-- BF-L comes from the "thing" template -->
<!-- BF-V expands all links, even to instances but not other works -->
<!-- Present formats -->
<!-- BF-L comes from the "thing" template -->
<!-- BF-V expands all links, even to instances but not other works -->
@@
-401,11
+402,6
@@
?thing bf:instanceOf %u
</index>
?thing bf:instanceOf %u
</index>
- <!-- Find all instances that refer to the given uri -->
- <!-- useful after finding uris in the "small" bases -->
- <index type="bf.ref">
- ?thing %v_rel %u
- </index>
<!-- Present formats. BF-L comes from "thing" -->
<!-- Full instance, with the related work too -->
<!-- Present formats. BF-L comes from "thing" -->
<!-- Full instance, with the related work too -->
@@
-577,9
+573,6
@@
<index type="any">
?thing ?rel ?obj FILTER( str(?thing) = %s )
</index>
<index type="any">
?thing ?rel ?obj FILTER( str(?thing) = %s )
</index>
- <index type="ref"> <!-- return any object that refers to %u-->
- ?thing ?rel ?obj FILTER( str(?obj) = %s )
- </index>
</db>
</filter>
</db>
</filter>