NIHVIVO-2073 Modify custom view when there is no linked individual
This commit is contained in:
parent
655d7a4572
commit
d99dbdd526
18 changed files with 25 additions and 28 deletions
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?authorship (afn:localname(?authorship) AS ?authorshipName)
|
||||
SELECT DISTINCT ?authorship
|
||||
?infoResource ?infoResourceName
|
||||
?dateTime WHERE {
|
||||
?subject ?property ?authorship
|
||||
|
@ -28,7 +28,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?authorship (afn:localname(?authorship) AS ?authorshipName)
|
||||
?authorship
|
||||
?infoResource ?infoResourceName
|
||||
?dateTime WHERE {
|
||||
?subject ?property ?authorship
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?dateTimeInterval ?intervalName
|
||||
SELECT DISTINCT ?dateTimeInterval
|
||||
?valueStart ?valueStartName
|
||||
?dateTimeStart
|
||||
?precisionStart
|
||||
|
@ -17,7 +17,7 @@
|
|||
?dateTimeEnd
|
||||
?precisionEnd WHERE {
|
||||
?subject ?property ?dateTimeInterval
|
||||
LET (?intervalName := afn:localname(?dateTimeInterval))
|
||||
|
||||
OPTIONAL { ?dateTimeInterval core:start ?valueStart
|
||||
LET (?valueStartName := afn:localname(?valueStart))
|
||||
OPTIONAL { ?valueStart core:dateTime ?dateTimeStart }
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?dateTimeValue
|
||||
(afn:localname(?dateTimeValue) AS ?dateTimeValueName)
|
||||
(afn:localname(?dateTimePrecision) AS ?precision)
|
||||
?dateTime WHERE {
|
||||
?subject ?property ?dateTimeValue
|
||||
|
|
|
@ -9,14 +9,13 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?edTraining ?edTrainingName
|
||||
SELECT DISTINCT ?edTraining
|
||||
?org ?orgName
|
||||
?degreeName ?degreeAbbr
|
||||
?majorField ?deptOrSchool ?info
|
||||
?dateTimeStart ?dateTimeEnd
|
||||
WHERE {
|
||||
?subject ?property ?edTraining
|
||||
LET (?edTrainingName := afn:localname(?edTraining))
|
||||
OPTIONAL { ?edTraining core:trainingAtOrganization ?org .
|
||||
?org rdfs:label ?orgName
|
||||
}
|
||||
|
@ -45,14 +44,13 @@
|
|||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?edTraining ?edTrainingName
|
||||
?edTraining
|
||||
?org ?orgName
|
||||
?degreeName ?degreeAbbr
|
||||
?majorField ?deptOrSchool ?info
|
||||
?dateTimeStart ?dateTimeEnd
|
||||
WHERE {
|
||||
?subject ?property ?edTraining
|
||||
LET (?edTrainingName := afn:localname(?edTraining))
|
||||
OPTIONAL { ?edTraining core:trainingAtOrganization ?org .
|
||||
?org rdfs:label ?orgName
|
||||
OPTIONAL { ?subclass rdfs:subClassOf foaf:Organization .
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?role (afn:localname(?role) AS ?roleName)
|
||||
SELECT DISTINCT ?role
|
||||
?roleLabel
|
||||
?activity ?activityName
|
||||
?dateTimeStart ?dateTimeEnd WHERE {
|
||||
|
@ -35,7 +35,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?role (afn:localname(?role) AS ?roleName)
|
||||
?role
|
||||
?roleLabel
|
||||
?activity ?activityName
|
||||
?dateTimeStart ?dateTimeEnd WHERE {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?authorship (afn:localname(?authorship) AS ?authorshipName)
|
||||
SELECT DISTINCT ?authorship
|
||||
?person ?personName WHERE {
|
||||
?subject ?property ?authorship
|
||||
OPTIONAL { ?authorship core:authorRank ?rank }
|
||||
|
@ -26,7 +26,7 @@
|
|||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?authorship (afn:localname(?authorship) AS ?authorshipName)
|
||||
?authorship
|
||||
?person ?personName WHERE {
|
||||
?subject ?property ?authorship
|
||||
OPTIONAL { ?authorship core:authorRank ?rank }
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?position (afn:localname(?position) AS ?positionName)
|
||||
SELECT DISTINCT ?position
|
||||
?positionTitle
|
||||
?person ?personName
|
||||
?dateTimeStart ?dateTimeEnd WHERE {
|
||||
|
@ -38,7 +38,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?position (afn:localname(?position) AS ?positionName)
|
||||
?position
|
||||
?positionTitle
|
||||
?person ?personName
|
||||
?dateTimeStart ?dateTimeEnd WHERE {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?position (afn:localname(?position) AS ?positionName)
|
||||
SELECT DISTINCT ?position
|
||||
?positionTitle
|
||||
?hrJobTitle
|
||||
?org ?orgName
|
||||
|
@ -37,7 +37,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?position (afn:localname(?position) AS ?positionName)
|
||||
?position
|
||||
?positionTitle
|
||||
?hrJobTitle
|
||||
?org ?orgName
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?role (afn:localname(?role) AS ?roleName)
|
||||
SELECT DISTINCT ?role
|
||||
?roleLabel ?roleTypeLabel
|
||||
?indivInRole (afn:localname(?indivInRole) AS ?indivName)
|
||||
?indivLabel
|
||||
|
@ -48,7 +48,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT DISTINCT ?subclass
|
||||
?role (afn:localname(?role) AS ?roleName)
|
||||
?role
|
||||
?roleLabel ?roleTypeLabel
|
||||
?indivInRole (afn:localname(?indivInRole) AS ?indivName)
|
||||
?indivLabel
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a href="${profileUrl(statement.infoResource)}">${statement.infoResourceName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.authorship)}">${statement.authorshipName}</a> (no linked information resource)
|
||||
<a href="${profileUrl(statement.authorship)}">missing information resource</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<#import "lib-datetime.ftl" as dt>
|
||||
|
||||
<#if ! statement.valueStart?? && ! statement.valueEnd??>
|
||||
<a href="${profileUrl(statement.dateTimeInterval)}">${statement.intervalName}</a> (incomplete date/time interval data)
|
||||
<a href="${profileUrl(statement.dateTimeInterval)}">incomplete date/time interval</a>
|
||||
<#else>
|
||||
${dt.dateTimeIntervalLong("${statement.dateTimeStart!}", "${statement.precisionStart!}", "${statement.dateTimeEnd!}", "${statement.precisionEnd!}")}
|
||||
</#if>
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<#-- No core:dateTime data property assigned. Display a link to the core:DateTimeValue object -->
|
||||
<#if ! statement.dateTime??>
|
||||
<a href="${profileUrl(statement.dateTimeValue)}">${statement.dateTimeValueName}</a> (incomplete date/time data)
|
||||
<a href="${profileUrl(statement.dateTimeValue)}">incomplete date/time</a>
|
||||
<#else>
|
||||
${dt.formatXsdDateTimeLong(statement.dateTime, statement.precision!)}
|
||||
</#if>
|
|
@ -27,7 +27,7 @@
|
|||
<a href="${profileUrl(statement.org)}">${statement.orgName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.edTraining)}">${statement.edTrainingName}</a> (no linked organization)
|
||||
<a href="${profileUrl(statement.edTraining)}">missing organization</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a href="${profileUrl(statement.activity)}">${statement.activityLabel!statement.activityName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.role)}">${statement.roleName}</a> (no linked activity)
|
||||
<a href="${profileUrl(statement.role)}">missing activity</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
|
@ -13,6 +13,6 @@
|
|||
<a href="${profileUrl(statement.person)}">${statement.personName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.authorship)}">${statement.authorshipName}</a> (no linked author)
|
||||
<a href="${profileUrl(statement.authorship)}">missing author</a>
|
||||
</#if>
|
||||
</#macro>
|
|
@ -16,7 +16,7 @@
|
|||
<a href="${profileUrl(statement.person)}">${statement.personName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.position)}">${statement.positionName}</a> (no linked person)
|
||||
<a href="${profileUrl(statement.position)}">missing person in this position</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a href="${profileUrl(statement.org)}">${statement.orgName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.position)}">${statement.positionName}</a> (no linked organization)
|
||||
<a href="${profileUrl(statement.position)}">missing organization</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a href="${profileUrl(statement.indivInRole)}">${statement.indivLabel!statement.indivName}</a>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.role)}">${statement.roleName}</a> (no linked individual in this role)
|
||||
<a href="${profileUrl(statement.role)}">missing person in this role</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue