Rewrite indexing rules for more generic cases
This commit is contained in:
parent
cfc3e7dd65
commit
9d9d936046
1 changed files with 8 additions and 9 deletions
|
@ -33,9 +33,8 @@
|
|||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?subject .
|
||||
}
|
||||
""" .
|
||||
|
||||
|
||||
:vivodocumentModifier_PopulateText
|
||||
:vivodocumentModifier_PopulateTextWithHTMLContentsOfExcerpts
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
|
||||
rdfs:label "Html text to text field" ;
|
||||
|
@ -52,10 +51,10 @@
|
|||
}
|
||||
UNION
|
||||
{
|
||||
?uri rdf:type ts:publication .
|
||||
?uri rdf:type ts:complexPublication .
|
||||
?uri ts:hasTOC ?toc .
|
||||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
|
||||
?artExcerpt ts:htmlExcerpt ?htmlExcerpt .
|
||||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?excerpt .
|
||||
?excerpt ts:htmlExcerpt ?htmlExcerpt .
|
||||
}
|
||||
}
|
||||
""" .
|
||||
|
@ -73,16 +72,16 @@
|
|||
SELECT DISTINCT ?rubric
|
||||
WHERE {
|
||||
{
|
||||
?uri rdf:type ts:elenphExcerpt .
|
||||
?uri rdf:type ts:textExcerpt .
|
||||
?uri pr:belongsTo ?assignedRubric .
|
||||
?assignedRubric (pr:hasParent)* ?rubric .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?uri rdf:type ts:elenphArticle .
|
||||
?uri rdf:type ts:complexPublication .
|
||||
?uri ts:hasTOC ?toc .
|
||||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
|
||||
?artExcerpt pr:belongsTo ?assignedRubric .
|
||||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?excerpt .
|
||||
?excerpt pr:belongsTo ?assignedRubric .
|
||||
?assignedRubric (pr:hasParent)* ?rubric .
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue