NIHVIVO-1336 Educational training short view
This commit is contained in:
parent
704136c6f2
commit
07bf2f6c14
2 changed files with 17 additions and 5 deletions
|
@ -5,15 +5,15 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
|
||||
SELECT DISTINCT ?edTraining ?org ?orgName ?degreeName ?degreeAbbr ?majorField ?deptOrSchool ?info ?dateTime WHERE {
|
||||
SELECT DISTINCT ?edTraining ?org ?orgName ?degree ?degreeName ?degreeAbbr ?majorField ?deptOrSchool ?info ?dateTime WHERE {
|
||||
?edTraining core:trainingAtOrganization ?org .
|
||||
?org rdfs:label ?orgName
|
||||
OPTIONAL { ?edTraining core:degreeEarned ?degree . }
|
||||
OPTIONAL { ?degree rdfs:label ?degreeName . }
|
||||
OPTIONAL { ?degree core:abbreviation ?degreeAbbr . }
|
||||
OPTIONAL { ?degree core:majorField ?majorField . }
|
||||
OPTIONAL { ?degree core:departmentOrSchool ?deptOrSchool . }
|
||||
OPTIONAL { ?degree core:supplementalInformation ?info . }
|
||||
OPTIONAL { ?edTraining core:majorField ?majorField . }
|
||||
OPTIONAL { ?edTraining core:departmentOrSchool ?deptOrSchool . }
|
||||
OPTIONAL { ?edTraining core:supplementalInformation ?info . }
|
||||
OPTIONAL { ?edTraining core:dateTimeInterval ?interval . }
|
||||
OPTIONAL { ?interval core:hasDateTimeValue ?dateTime . }
|
||||
} ORDER BY DESC(?dateTime)
|
||||
|
|
|
@ -2,4 +2,16 @@
|
|||
|
||||
<#-- Custom object property statement short view for http://vivoweb.org/ontology/core#educationalTraining -->
|
||||
|
||||
<a href="${statement.orgUrl}">${statement.orgName}</a> ${statement.degreeName}
|
||||
<#import "lib-sequence.ftl" as s>
|
||||
|
||||
<#compress>
|
||||
<#assign degree>
|
||||
<#if statement.degree??>
|
||||
<@s.join [ statement.degreeAbbr!statement.degreeName, statement.majorField! ], " in " />
|
||||
</#if>
|
||||
</#assign>
|
||||
|
||||
<#assign org><a href="${statement.orgUrl}">${statement.orgName}</a></#assign>
|
||||
|
||||
<@s.join [ degree, org, statement.deptOrSchool!, statement.info!, statement.datetime! ] />
|
||||
</#compress>
|
Loading…
Add table
Add a link
Reference in a new issue