Sum all rubrics of article while indexing
This commit is contained in:
parent
0417c61e23
commit
271b16eb1c
1 changed files with 14 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
|
||||||
:vivodocumentModifier_rubricsOfExcerpt
|
:vivodocumentModifier_rubrics
|
||||||
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
|
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
|
||||||
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
|
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
|
||||||
rdfs:label "Add rubrics in semantic_marks excerpt field" ;
|
rdfs:label "Add rubrics in semantic_marks excerpt field" ;
|
||||||
|
@ -31,9 +31,19 @@
|
||||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||||
SELECT DISTINCT ?rubric
|
SELECT DISTINCT ?rubric
|
||||||
WHERE {
|
WHERE {
|
||||||
?uri rdf:type ts_:elenphExcerpt .
|
{
|
||||||
?uri pr:belongsTo ?assignedRubric .
|
?uri rdf:type ts_:elenphExcerpt .
|
||||||
?assignedRubric (pr:hasParent)* ?rubric .
|
?uri pr:belongsTo ?assignedRubric .
|
||||||
|
?assignedRubric (pr:hasParent)* ?rubric .
|
||||||
|
}
|
||||||
|
UNION
|
||||||
|
{
|
||||||
|
?uri rdf:type ts_:elenphArticle .
|
||||||
|
?uri ts_:hasTOC ?toc .
|
||||||
|
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?artExcerpt .
|
||||||
|
?artExcerpt pr:belongsTo ?assignedRubric .
|
||||||
|
?assignedRubric (pr:hasParent)* ?rubric .
|
||||||
|
}
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue