VIVO-827: display the vocabulary source on a concept profile page

This commit is contained in:
Tim Worrall 2014-08-29 12:27:06 -04:00
parent 093aed785a
commit 19f1db691d
3 changed files with 42 additions and 0 deletions

View file

@ -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>