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:
4485a14
)
LOC-6: Search by type and contentCategory
author
Heikki Levanto
<heikki@indexdata.dk>
Fri, 8 May 2015 12:23:48 +0000
(14:23 +0200)
committer
Heikki Levanto
<heikki@indexdata.dk>
Fri, 8 May 2015 12:23:48 +0000
(14:23 +0200)
bibframe/triplestore.xml
patch
|
blob
|
history
diff --git
a/bibframe/triplestore.xml
b/bibframe/triplestore.xml
index
36e49eb
..
b5d529f
100644
(file)
--- a/
bibframe/triplestore.xml
+++ b/
bibframe/triplestore.xml
@@
-17,8
+17,14
@@
<!-- bf.uri is a simple way to get to a thing -->
<index type="bf.uri">
<!-- bf.uri is a simple way to get to a thing -->
<index type="bf.uri">
- ?thing rdf:type ?any FILTER( ?thing = %u ) </index>
+ ?thing rdf:type ?any FILTER( ?thing = %u )
+ </index>
+ <!-- bf.type is a simple way to search for types -->
+ <!-- for example, a bf.Work can also be bf:Text or bf:Audio -->
+ <index type="bf.type">
+ ?thing a %t
+ </index>
<!-- The BF-L present format is the same for everything -->
<!-- Each db is supposed to provide a dedicated BF-V present format -->
<!-- The BF-L present format is the same for everything -->
<!-- Each db is supposed to provide a dedicated BF-V present format -->
@@
-157,6
+163,11
@@
?subject bf:label %v FILTER(contains(%v, %s))
</index>
?subject bf:label %v FILTER(contains(%v, %s))
</index>
+ <!-- contentCategory can be searched with complete URIs like -->
+ <!-- http://id.loc.gov/vocabulary/contentTypes/txt -->
+ <index type="bf.contentcategory">
+ ?thing bf:contentCategory %u
+ </index>
<!-- Present formats -->
<!-- BF-L comes from the "thing" template -->
<!-- Present formats -->
<!-- BF-L comes from the "thing" template -->