Short view for virtual articles
This commit is contained in:
parent
d5a9a9bca6
commit
f36881f24c
1 changed files with 28 additions and 0 deletions
|
@ -11,3 +11,31 @@
|
||||||
# Find out how to use this file at
|
# Find out how to use this file at
|
||||||
# https://wiki.duraspace.org/display/VIVO/Using+Short+Views+in+Release+1.5
|
# https://wiki.duraspace.org/display/VIVO/Using+Short+Views+in+Release+1.5
|
||||||
#
|
#
|
||||||
|
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||||
|
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||||
|
@prefix mydomain: <http://vivo.mydomain.edu/individual/> .
|
||||||
|
|
||||||
|
ts_:elenphExcerpt display:hasCustomView mydomain:elenphExcerptShortView .
|
||||||
|
|
||||||
|
mydomain:elenphExcerptShortView
|
||||||
|
a display:customViewForIndividual ;
|
||||||
|
display:appliesToContext "SEARCH" ;
|
||||||
|
display:hasTemplate "elenphExcerptShortView.ftl" ;
|
||||||
|
display:hasDataGetter mydomain:elenphExcerptShortViewDataGetter .
|
||||||
|
|
||||||
|
mydomain:elenphExcerptShortViewDataGetter
|
||||||
|
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||||
|
display:saveToVar "excerptInfo";
|
||||||
|
display:query
|
||||||
|
"""
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||||
|
SELECT ?property ?value
|
||||||
|
WHERE {
|
||||||
|
?individualUri ?property ?value .
|
||||||
|
?individualUri rdf:type ts_:elenphExcerpt .
|
||||||
|
}
|
||||||
|
""" .
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue