Populated text field
This commit is contained in:
parent
dd30f56ae4
commit
d4a5f3dcb8
1 changed files with 26 additions and 1 deletions
|
@ -19,6 +19,31 @@
|
|||
}
|
||||
""" .
|
||||
|
||||
:vivodocumentModifier_PopulateText
|
||||
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" ;
|
||||
:hasTargetField "text" ;
|
||||
:hasSelectQuery """
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?htmlExcerpt
|
||||
WHERE {
|
||||
{
|
||||
?uri rdf:type ts_:textExcerpt .
|
||||
?uri ts_:htmlExcerpt ?htmlExcerpt .
|
||||
}
|
||||
UNION
|
||||
{
|
||||
?uri rdf:type ts_:publication .
|
||||
?uri ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?artExcerpt .
|
||||
?artExcerpt ts_:htmlExcerpt ?htmlExcerpt .
|
||||
}
|
||||
}
|
||||
""" .
|
||||
|
||||
:vivodocumentModifier_rubrics
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryDocumentModifier> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
|
||||
|
|
Loading…
Add table
Reference in a new issue