projects
/
mp-sparql-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LOC-6: Add index for lccn, and update the node and ref indexes
[mp-sparql-moved-to-github.git]
/
bibframe
/
triplestore.xml
diff --git
a/bibframe/triplestore.xml
b/bibframe/triplestore.xml
index
65aa8af
..
ac5b492
100644
(file)
--- a/
bibframe/triplestore.xml
+++ b/
bibframe/triplestore.xml
@@
-163,7
+163,6
@@
%v_inst bf:instanceOf ?thing .
%v_inst bf:instanceTitle %v_ti .
%v_ti bf:titleValue %v FILTER(contains(%v, %s))
%v_inst bf:instanceOf ?thing .
%v_inst bf:instanceTitle %v_ti .
%v_ti bf:titleValue %v FILTER(contains(%v, %s))
- } UNION {
}
</index>
}
</index>
@@
-377,6
+376,13
@@
%v_isbn bf:identifierValue %v FILTER( %v = %s )
}
</index>
%v_isbn bf:identifierValue %v FILTER( %v = %s )
}
</index>
+
+ <!-- lccn number, a simpler index for id numbers -->
+ <index type="bf.lccn">
+ ?thing bf:lccn %v_lccn .
+ %v_lccn a bf:Identifier .
+ %v_lccn bf:identifierValue %v FILTER( %v = %s )
+ </index>
<!-- Present formats. BF-L comes from "thing" -->
<!-- Present formats. BF-L comes from "thing" -->
@@
-546,11
+552,15
@@
<!-- A hack to be able to look at any triplet in the base -->
<db path="node" schema="sparql-results" include="smallbody">
<!-- A hack to be able to look at any triplet in the base -->
<db path="node" schema="sparql-results" include="smallbody">
- <index type="any">?thing ?rel ?obj FILTER( str(?thing) = %s )</index>
+ <index type="any">
+ ?thing ?rel ?obj FILTER( str(?thing) = %s )
+ </index>
</db>
<!-- A way to see which triplets refers to a given uri. -->
<db path="ref" schema="sparql-results" include="smallbody">
</db>
<!-- A way to see which triplets refers to a given uri. -->
<db path="ref" schema="sparql-results" include="smallbody">
- <index type="any">?thing ?rel ?obj FILTER( str(?obj) = %s )</index>
+ <index type="any">
+ ?thing ?rel ?obj FILTER( str(?obj) = %s )
+ </index>
</db>
</filter>
</db>
</filter>