data getter sparql queries in the n3 files were using a technique that apparently is no longer supported; updated those and corresponding templates.

This commit is contained in:
tworrall 2013-12-19 10:05:31 -05:00
parent ef9fd69285
commit f5a8c5a7e6
5 changed files with 88 additions and 86 deletions

View file

@ -2,10 +2,10 @@
<#if deptResearchAreas?has_content>
<section id="pageList">
<#list deptResearchAreas as firstRow>
<#assign raLink = "${urls.base}/individual?uri=${firstRow['raURI']}" />
<#assign raLink = "${urls.base}/individual?uri=${firstRow['ra']}" />
<div class="tab">
<h2>${firstRow["orgLabel"]}</h2>
<p>${i18n().individuals_with_dept(firstRow['raLabel'],raLink)} <a href="${urls.base}/individual?uri=${firstRow["orgURI"]}">${i18n().view_all_individuals_in_dept}</a></p>
<p>${i18n().individuals_with_dept(firstRow['raLabel'],raLink)} <a href="${urls.base}/individual?uri=${firstRow["org"]}">${i18n().view_all_individuals_in_dept}</a></p>
</div>
<#break>
</#list>

View file

@ -12,7 +12,7 @@
</#if>
<div class="tab">
<h2>${firstRow["raLabel"]}</h2>
<p>${i18TextString1} <a href="${urls.base}/individual?uri=${firstRow["raURI"]}">${i18n().view_all_individuals_in_area}</a></p>
<p>${i18TextString1} <a href="${urls.base}/individual?uri=${firstRow["ra"]}">${i18n().view_all_individuals_in_area}</a></p>
</div>
<#break>
</#list>

View file

@ -4,7 +4,7 @@
<#list deptResearchAreas as firstRow>
<div class="tab">
<h2>${firstRow["raLabel"]}</h2>
<p>${i18n().faculty_with_researh_area(firstRow["deptLabel"])} <a href="${urls.base}/individual?uri=${firstRow["raURI"]}">${i18n().view_all_faculty_in_area}</a></p>
<p>${i18n().faculty_with_researh_area(firstRow["orgLabel"])} <a href="${urls.base}/individual?uri=${firstRow["ra"]}">${i18n().view_all_faculty_in_area}</a></p>
</div>
<#break>
</#list>

View file

@ -65,8 +65,8 @@ display:getDepartmentDataGetter
?person
(Str(?researchAreaLabel) AS ?raLabel)
(str(?departmentLabel) AS ?orgLabel)
?raURI
?orgURI
?ra
?org
WHERE {
?orgURI vivo:relatedBy ?posn .
?posn a vivo:Position .
@ -76,6 +76,8 @@ display:getDepartmentDataGetter
?person rdfs:label ?prsnLabel .
?person vivo:hasResearchArea ?raURI .
?raURI rdfs:label ?researchAreaLabel
BIND(?raURI AS ?ra)
BIND(?orgURI AS ?org)
}
ORDER BY ?personLabel

View file

@ -107,9 +107,8 @@ display:getResearchAreaDataGetter
SELECT DISTINCT (str (?prsnLabel) AS ?personLabel)
?person
(Str(?researchAreaLabel) AS ?raLabel)
(str(?departmentLabel) AS ?orgLabel)
?raURI
?orgURI
(str(?organizationLabel) AS ?orgLabel)
?ra
WHERE {
?orgURI vivo:relatedBy ?posn .
?posn a vivo:Position .
@ -119,6 +118,7 @@ display:getResearchAreaDataGetter
?person rdfs:label ?prsnLabel .
?person vivo:hasResearchArea ?raURI .
?raURI rdfs:label ?researchAreaLabel
BIND(?raURI AS ?ra)
}
ORDER BY ?personLabel