minor list view changes

This commit is contained in:
tworrall 2013-03-26 13:38:25 -04:00
parent 86caf18b25
commit 0c3d268cc2
5 changed files with 30 additions and 95 deletions

View file

@ -125,21 +125,6 @@
} }
</query-construct> </query-construct>
<query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?advisory .
?advisory vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:AdvisingRelationship
} WHERE {
?subject ?property ?advisory .
?advisory vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:AdvisingRelationship
}
</query-construct>
<query-construct> <query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt; PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
CONSTRUCT { CONSTRUCT {

View file

@ -26,8 +26,8 @@
?editor ?editor
?hideThis ?hideThis
WHERE { WHERE {
?subject ?property ?authorship ?subject ?property ?authorship .
OPTIONAL { ?authorship core:linkedInformationResource ?infoResource . ?authorship core:linkedInformationResource ?infoResource .
?infoResource rdfs:label ?infoResourceName ?infoResource rdfs:label ?infoResourceName
OPTIONAL { ?infoResource bibo:volume ?volume } OPTIONAL { ?infoResource bibo:volume ?volume }
@ -46,7 +46,6 @@
OPTIONAL { ?infoResource core:partOf ?partOfObj . OPTIONAL { ?infoResource core:partOf ?partOfObj .
?partOfObj rdfs:label ?partOf ?partOfObj rdfs:label ?partOf
} }
OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass . OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:InformationResource ?subclass rdfs:subClassOf core:InformationResource
} }
@ -57,8 +56,7 @@
?dateTimeValue core:dateTime ?dateTime ?dateTimeValue core:dateTime ?dateTime
} }
OPTIONAL { ?authorship core:hideFromDisplay ?hideThis } OPTIONAL { ?authorship core:hideFromDisplay ?hideThis }
}
# NOT EXISTS { ?authorship core:hideFromDisplay ?hideThis }
<critical-data-required> <critical-data-required>
FILTER ( bound(?infoResource) ) FILTER ( bound(?infoResource) )
</critical-data-required> </critical-data-required>
@ -169,22 +167,6 @@
} }
</query-construct> </query-construct>
<query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?authorship .
?infoResource vitro:mostSpecificType ?subclass .
?authorship core:linkedInformationResource ?infoResource
} WHERE {
?subject ?property ?authorship .
?authorship core:linkedInformationResource ?infoResource .
?infoResource vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:InformationResource
}
</query-construct>
<query-construct> <query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt; PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;

View file

@ -122,22 +122,6 @@
} }
</query-construct> </query-construct>
<query-construct>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?edTraining .
?org vitro:mostSpecificType ?subclass .
?edTraining core:trainingAtOrganization ?org
} WHERE {
?subject ?property ?edTraining .
?org vitro:mostSpecificType ?subclass .
?edTraining core:trainingAtOrganization ?org
}
</query-construct>
<query-construct> <query-construct>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt; PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;

View file

@ -67,20 +67,5 @@
} }
</query-construct> </query-construct>
<query-construct>
PREFIX vivo: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?address .
?address vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf vivo:Address
} WHERE {
?subject ?property ?address .
?address vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf vivo:Address
}
</query-construct>
<template>propStatement-mailingAddress.ftl</template> <template>propStatement-mailingAddress.ftl</template>
</list-view-config> </list-view-config>

View file

@ -16,8 +16,7 @@
<#assign count = property.statements?size!> <#assign count = property.statements?size!>
<#assign identifier> <#assign identifier>
<#if statement.url?has_content> <#if statement.url?has_content>${statement.url?replace("[^\\p{L}\\p{N}]","","r")}<#t>
${statement.url?replace(":","")?replace("/","")?replace(".","-")?replace("&amp;","")?replace("%","")?replace("?","")?replace("=","")}<#t>
<#else> <#else>
"noUrl"<#t> "noUrl"<#t>
</#if> </#if>