git commit a754164
redux: putting these list view changes back in (and the wheel goes round and round)
This commit is contained in:
parent
fe8dc7bac3
commit
03c894c463
2 changed files with 17 additions and 21 deletions
|
@ -31,11 +31,10 @@
|
|||
|
||||
OPTIONAL {
|
||||
# Get mostSpecificType only for Persons
|
||||
?object a foaf:Person .
|
||||
?object vitro:mostSpecificType ?typeUri .
|
||||
?typeUri rdfs:label ?type .
|
||||
?object vitro:mostSpecificType ?subclass .
|
||||
?subclass rdfs:label ?type .
|
||||
# Display only a mostSpecificType that belongs to a classgroup.
|
||||
?typeUri vitro:inClassGroup ?classGroup .
|
||||
?subclass vitro:inClassGroup ?classGroup .
|
||||
?classGroup a vitro:ClassGroup
|
||||
}
|
||||
|
||||
|
@ -45,7 +44,6 @@
|
|||
}
|
||||
|
||||
<collated>
|
||||
OPTIONAL { ?object a ?subclass }
|
||||
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||
</collated>
|
||||
|
||||
|
@ -62,7 +60,6 @@
|
|||
CONSTRUCT {
|
||||
?subject ?property ?object .
|
||||
?object a ?objectType .
|
||||
?object a ?subclass .
|
||||
?object rdfs:label ?label .
|
||||
} WHERE {
|
||||
{
|
||||
|
@ -86,10 +83,10 @@
|
|||
CONSTRUCT {
|
||||
?subject ?property ?object .
|
||||
?object a ?objectType .
|
||||
?object vitro:mostSpecificType ?typeUri .
|
||||
?typeUri vitro:inClassGroup ?classGroup .
|
||||
?object vitro:mostSpecificType ?subclass .
|
||||
?subclass vitro:inClassGroup ?classGroup .
|
||||
?classGroup a vitro:ClassGroup .
|
||||
?typeUri rdfs:label ?type .
|
||||
?subclass rdfs:label ?type .
|
||||
?object obo:ARG_2000028 ?vcard .
|
||||
?vcard vcard:hasTitle ?titleObj .
|
||||
?titleObj vcard:title ?title
|
||||
|
@ -100,9 +97,9 @@
|
|||
} UNION {
|
||||
?subject ?property ?object .
|
||||
?object a ?objectType .
|
||||
?object vitro:mostSpecificType ?typeUri .
|
||||
?typeUri rdfs:label ?type .
|
||||
?typeUri vitro:inClassGroup ?classGroup .
|
||||
?object vitro:mostSpecificType ?subclass .
|
||||
?subclass rdfs:label ?type .
|
||||
?subclass vitro:inClassGroup ?classGroup .
|
||||
?classGroup a vitro:ClassGroup
|
||||
} UNION {
|
||||
?subject ?property ?object .
|
||||
|
@ -115,4 +112,4 @@
|
|||
</query-construct>
|
||||
|
||||
<template>propStatement-default.ftl</template>
|
||||
</list-view-config>
|
||||
</list-view-config>
|
|
@ -4,16 +4,15 @@
|
|||
|
||||
This template must be self-contained and not rely on other variables set for the individual page, because it
|
||||
is also used to generate the property statement during a deletion.
|
||||
-->
|
||||
-->
|
||||
|
||||
<@showStatement statement />
|
||||
|
||||
<#macro showStatement statement>
|
||||
<#-- The query retrieves a type only for Persons. Post-processing will remove all but one. -->
|
||||
<a href="${profileUrl(statement.uri("object"))}" title="${i18n().name}">${statement.label!statement.localName!}</a> ${statement.title!statement.type!}
|
||||
</#macro>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<#if statement.subclass??>
|
||||
<a href="${profileUrl(statement.uri("object"))}" title="${i18n().name}">${statement.label!statement.localName!}</a>
|
||||
<#else>
|
||||
<a href="${profileUrl(statement.uri("object"))}" title="${i18n().name}">${statement.label!statement.localName!}</a> ${statement.title!statement.type!}
|
||||
</#if>
|
||||
</#macro>
|
Loading…
Add table
Reference in a new issue