VIVO-827: display the vocabulary source on a concept profile page
This commit is contained in:
parent
093aed785a
commit
19f1db691d
3 changed files with 42 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
${classSpecificExtension!}
|
||||
${departmentalGrantsExtension!}
|
||||
<!--PREINDIVIDUAL OVERVIEW.FTL-->
|
||||
<#include "individual-vocabularyService.ftl">
|
||||
<#include "individual-webpage.ftl">
|
||||
<#include "individual-overview.ftl">
|
||||
${affiliatedResearchAreas!}
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
|
||||
<#if vocabularyService?has_content>
|
||||
<h2 class="mainPropGroup">Vocabulary Service</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<#switch vocabularyService[0]['vocabService']>
|
||||
<#case "AGROVOC">
|
||||
AGROVOC (Agricultural Vocabulary)
|
||||
<#break>
|
||||
<#case "GEMET">
|
||||
GEMET (GEneral Multilingual Environmental Thesaurus)
|
||||
<#break>
|
||||
<#case "LCSH">
|
||||
LCSH (Library of Congress Subject Headings)
|
||||
<#break>
|
||||
<#case "UMLS">
|
||||
UMLS (Unified Medical Language System)
|
||||
<#break>
|
||||
<#default>
|
||||
${vocabularyService[0]['vocabService']!}
|
||||
</#switch>
|
||||
</li>
|
||||
</ul>
|
||||
</#if>
|
|
@ -14,6 +14,7 @@
|
|||
## associate the classes with the datagetter ##
|
||||
|
||||
<http://www.w3.org/2004/02/skos/core#Concept> display:hasDataGetter display:getDepartmentDataGetter .
|
||||
<http://www.w3.org/2004/02/skos/core#Concept> display:hasDataGetter display:getVocabServiceDataGetter .
|
||||
|
||||
## define the datagetter ##
|
||||
|
||||
|
@ -45,6 +46,20 @@ display:getDepartmentDataGetter
|
|||
ORDER BY ?deptLabel
|
||||
""" .
|
||||
|
||||
display:getVocabServiceDataGetter
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
display:saveToVar "vocabularyService";
|
||||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
SELECT DISTINCT (str(?vocabularySourceName) AS ?vocabService)
|
||||
WHERE {
|
||||
?individualURI rdfs:isDefinedBy ?vocabularySource .
|
||||
?vocabularySource rdfs:label ?vocabularySourceName .
|
||||
}
|
||||
""" .
|
||||
|
||||
## detail page for dept research areas ##
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/default/page#AffiliatedDepartments>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue