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:
6b69127
)
LOC-6: Author indexes
author
Heikki Levanto
<heikki@indexdata.dk>
Mon, 4 May 2015 12:22:06 +0000
(14:22 +0200)
committer
Heikki Levanto
<heikki@indexdata.dk>
Mon, 4 May 2015 12:22:06 +0000
(14:22 +0200)
bibframe/triplestore.xml
patch
|
blob
|
history
diff --git
a/bibframe/triplestore.xml
b/bibframe/triplestore.xml
index
c48f6c8
..
72c98e7
100644
(file)
--- a/
bibframe/triplestore.xml
+++ b/
bibframe/triplestore.xml
@@
-97,12
+97,23
@@
}
</index>
}
</index>
- <index type="bf.creator">?work bf:creator ?c .
- ?c bf:label %v FILTER(contains(%v, %s))</index>
+ <!-- Author indexes -->
+ <index type="bf.creator">
+ ?work bf:creator ?c .
+ ?c bf:label %v FILTER(contains(%v, %s))
+ </index>
+
+ <index type="bf.contributor">
+ ?work bf:contributor ?c .
+ ?c bf:label %v FILTER(contains(%v, %s))
+ </index>
+
+ <!-- Subjects -->
<index type="bf.subject">?work bf:subject ?subject .
?subject bf:label %v FILTER(contains(%v, %s))
</index>
<index type="bf.subject">?work bf:subject ?subject .
?subject bf:label %v FILTER(contains(%v, %s))
</index>
-
+
+ <!-- Present formats. BF-L is just the links -->
<present type="BF-L">
CONSTRUCT { ?work ?rel ?subj }
WHERE {
<present type="BF-L">
CONSTRUCT { ?work ?rel ?subj }
WHERE {
@@
-111,7
+122,9
@@
?work ?rel ?obj FILTER( str(?work) = %s )
}
</present>
?work ?rel ?obj FILTER( str(?work) = %s )
}
</present>
- <present type="BF-F">
+
+ <!-- BF-F expands all links, except to instances -->
+ <present type="BF-F">
CONSTRUCT { ?work ?rel ?obj .
?obj ?rel1 ?obj1 .
?obj1 ?rel2 ?obj2 .
CONSTRUCT { ?work ?rel ?obj .
?obj ?rel1 ?obj1 .
?obj1 ?rel2 ?obj2 .
@@
-134,7
+147,9
@@
?work ?rel ?obj FILTER( str(?work) = %s )
}
</present>
?work ?rel ?obj FILTER( str(?work) = %s )
}
</present>
- <present type="BF-FI"> <!-- full, with instances. Experimental! -->
+
+ <!-- full, with instances. Experimental! -->
+ <present type="BF-FI">
CONSTRUCT { %u ?rel ?wobj1 .
?wobj1 ?wrel1 ?wobj2 .
?wobj2 ?wrel2 ?wobj3 .
CONSTRUCT { %u ?rel ?wobj1 .
?wobj1 ?wrel1 ?wobj2 .
?wobj2 ?wrel2 ?wobj3 .
@@
-148,7
+163,7
@@
the linking triplet will get included like any others -->
?inst bf:instanceOf %u
}
the linking triplet will get included like any others -->
?inst bf:instanceOf %u
}
- &workfull; <!-- This does not seem to get expanded!! -->
+ &workfull; <!-- This does not seem to get expanded!! TODO -->
OPTIONAL {
?wobj ?wrel1 ?wobj1
MINUS { ?wobj a bf:Work }
OPTIONAL {
?wobj ?wrel1 ?wobj1
MINUS { ?wobj a bf:Work }