NIHVIVO-1510 Collated custom list views

This commit is contained in:
rjy7 2010-12-22 23:10:13 +00:00
parent 0a28fc7db1
commit bf9b23b331
3 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
SELECT DISTINCT ?subClass ?authorship (afn:localname(?authorship) AS ?authorshipName) SELECT DISTINCT ?subclass ?authorship (afn:localname(?authorship) AS ?authorshipName)
?infoResource ?infoResourceName ?dateTime WHERE { ?infoResource ?infoResourceName ?dateTime WHERE {
GRAPH ?g1 { ?subject ?property ?authorship } GRAPH ?g1 { ?subject ?property ?authorship }
GRAPH ?g2 { ?authorship core:linkedInformationResource ?infoResource } GRAPH ?g2 { ?authorship core:linkedInformationResource ?infoResource }
@ -36,8 +36,8 @@
OPTIONAL { GRAPH ?g4 { ?subclass rdfs:subClassOf core:InformationResource } OPTIONAL { GRAPH ?g4 { ?subclass rdfs:subClassOf core:InformationResource }
GRAPH ?g5 { ?infoResource a ?subclass } } GRAPH ?g5 { ?infoResource a ?subclass } }
OPTIONAL { GRAPH ?g6 { ?infoResource core:hasDateTimeValue ?dateTimeValue . OPTIONAL { GRAPH ?g6 { ?infoResource core:hasDateTimeValue ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime . } } ?dateTimeValue core:dateTime ?dateTime . } }
} ORDER BY ?subClass DESC(?dateTime) ?infoResourceName } ORDER BY ?subclass DESC(?dateTime) ?infoResourceName
</query> </query>
<template>propStatement-authorInAuthorship.ftl</template> <template>propStatement-authorInAuthorship.ftl</template>

View file

@ -10,7 +10,7 @@
<a href="${url(statement.infoResource)}">${statement.infoResourceName}</a> <a href="${url(statement.infoResource)}">${statement.infoResourceName}</a>
<#else> <#else>
<#-- This shouldn't happen, but we must provide for it --> <#-- This shouldn't happen, but we must provide for it -->
<a href="${url(statement.authorship)}">(no linked publication) ${statement.authorshipName}</a> <a href="${url(statement.authorship)}">${statement.authorshipName}</a> (no linked information resource)
</#if> </#if>
</#assign> </#assign>

View file

@ -16,7 +16,7 @@
<a href="${url(statement.org)}">${statement.orgName}</a> <a href="${url(statement.org)}">${statement.orgName}</a>
<#else> <#else>
<#-- This shouldn't happen, but we must provide for it --> <#-- This shouldn't happen, but we must provide for it -->
<a href="${url(statement.edTraining)}">(no linked organization) ${statement.edTrainingName}</a> <a href="${url(statement.edTraining)}">${statement.edTrainingName}</a> (no linked organization)
</#if> </#if>
</#assign> </#assign>