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
|
@ -34,8 +34,7 @@
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
|
||||||
|
:vivodocumentModifier_PopulateTextWithHTMLContentsOfExcerpts
|
||||||
:vivodocumentModifier_PopulateText
|
|
||||||
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 "Html text to text field" ;
|
rdfs:label "Html text to text field" ;
|
||||||
|
@ -52,10 +51,10 @@
|
||||||
}
|
}
|
||||||
UNION
|
UNION
|
||||||
{
|
{
|
||||||
?uri rdf:type ts:publication .
|
?uri rdf:type ts:complexPublication .
|
||||||
?uri ts:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?excerpt .
|
||||||
?artExcerpt ts:htmlExcerpt ?htmlExcerpt .
|
?excerpt ts:htmlExcerpt ?htmlExcerpt .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
@ -73,16 +72,16 @@
|
||||||
SELECT DISTINCT ?rubric
|
SELECT DISTINCT ?rubric
|
||||||
WHERE {
|
WHERE {
|
||||||
{
|
{
|
||||||
?uri rdf:type ts:elenphExcerpt .
|
?uri rdf:type ts:textExcerpt .
|
||||||
?uri pr:belongsTo ?assignedRubric .
|
?uri pr:belongsTo ?assignedRubric .
|
||||||
?assignedRubric (pr:hasParent)* ?rubric .
|
?assignedRubric (pr:hasParent)* ?rubric .
|
||||||
}
|
}
|
||||||
UNION
|
UNION
|
||||||
{
|
{
|
||||||
?uri rdf:type ts:elenphArticle .
|
?uri rdf:type ts:complexPublication .
|
||||||
?uri ts:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?excerpt .
|
||||||
?artExcerpt pr:belongsTo ?assignedRubric .
|
?excerpt pr:belongsTo ?assignedRubric .
|
||||||
?assignedRubric (pr:hasParent)* ?rubric .
|
?assignedRubric (pr:hasParent)* ?rubric .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue