Moved shortconfig from Vitro branch
This commit is contained in:
parent
5bbd9b2471
commit
f71300f77e
1 changed files with 27 additions and 0 deletions
27
webapp/src/main/webapp/WEB-INF/resources/shortview_config.n3
Normal file
27
webapp/src/main/webapp/WEB-INF/resources/shortview_config.n3
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
@prefix ts_: <https://litvinovg.pro/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://litvinovg.pro/text_structures#>
|
||||||
|
SELECT ?property ?value
|
||||||
|
WHERE {
|
||||||
|
?individualUri ?property ?value .
|
||||||
|
?individualUri rdf:type ts_:elenphExcerpt .
|
||||||
|
}
|
||||||
|
""" .
|
Loading…
Add table
Reference in a new issue