Populated text field

This commit is contained in:
Georgy Litvinov 2020-08-31 10:03:33 +02:00
parent dd30f56ae4
commit d4a5f3dcb8

View file

@ -18,7 +18,32 @@
?elenphExcerpt ?property ?value . ?elenphExcerpt ?property ?value .
} }
""" . """ .
: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 :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> ;