Added articles info to excerpt
This commit is contained in:
parent
245360af06
commit
a67fbe6ded
2 changed files with 41 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
||||||
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||||
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||||
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||||
|
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||||
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||||
|
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||||
|
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||||
|
|
||||||
|
|
||||||
|
<https://iph.ras.ru/text_structures#elenphExcerpt> display:hasDataGetter display:getExcerptAssignedArticlesDataGetter .
|
||||||
|
|
||||||
|
|
||||||
|
display:getExcerptAssignedArticlesDataGetter
|
||||||
|
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||||
|
display:saveToVar "articles";
|
||||||
|
display:query
|
||||||
|
"""
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
SELECT DISTINCT ?articleName ?articleUri
|
||||||
|
WHERE {
|
||||||
|
?articleUri rdf:type ts_:elenphArticle .
|
||||||
|
?articleUri (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText <https://iph.ras.ru/text_structures#elenphExcerpt/w2phtml_vdovina_riker0_0_1> .
|
||||||
|
?articleUri rdfs:label ?articleName .
|
||||||
|
} ORDER BY ?articleName
|
||||||
|
""" .
|
||||||
|
|
|
@ -91,6 +91,19 @@
|
||||||
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!>
|
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
|
<#if articles?has_content>
|
||||||
|
<div class="label">В составе статей: </div>
|
||||||
|
<div>
|
||||||
|
<#list articles as article>
|
||||||
|
<#if article?has_content >
|
||||||
|
<div style="list-style:none;border:none;width: 100%;text-align:left;" class="article">
|
||||||
|
<a href="${urls.base}/individual?uri=${article.articleUri?url}"">${article.articleName}</a>
|
||||||
|
</div>
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
|
</div>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#assign author = propertyGroups.pullProperty("https://iph.ras.ru/text_structures#author")!>
|
<#assign author = propertyGroups.pullProperty("https://iph.ras.ru/text_structures#author")!>
|
||||||
<#if author?has_content >
|
<#if author?has_content >
|
||||||
<div class="label">Авторы: <@p.addLink author editable /> <@p.verboseDisplay author /> </div>
|
<div class="label">Авторы: <@p.addLink author editable /> <@p.verboseDisplay author /> </div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue