From 8d094db13d5f1b577a6b0d6b50bac26018c26e4c Mon Sep 17 00:00:00 2001 From: rjy7 Date: Thu, 23 Dec 2010 17:24:06 +0000 Subject: [PATCH] NIHVIVO-1510 Use query filters to remove inferred subclass assertions from collated object property custom list view query --- .../listViewConfig-authorInAuthorship.xml | 40 ++++++++++++++++--- .../listViewConfig-educationalTraining.xml | 35 ++++++++++++++-- 2 files changed, 66 insertions(+), 9 deletions(-) diff --git a/productMods/config/listViewConfig-authorInAuthorship.xml b/productMods/config/listViewConfig-authorInAuthorship.xml index 0dbd5ed3..41e0ac80 100644 --- a/productMods/config/listViewConfig-authorInAuthorship.xml +++ b/productMods/config/listViewConfig-authorInAuthorship.xml @@ -2,6 +2,9 @@ @@ -34,9 +61,12 @@ GRAPH ?g2 { ?authorship core:linkedInformationResource ?infoResource } GRAPH ?g3 { ?infoResource rdfs:label ?infoResourceName } OPTIONAL { GRAPH ?g4 { ?subclass rdfs:subClassOf core:InformationResource } - GRAPH ?g5 { ?infoResource a ?subclass } } + GRAPH ?g5 { ?infoResource a ?subclass } + FILTER (?g5 != <http://vitro.mannlib.cornell.edu/default/inferred-tbox> && + ?g5 != <http://vitro.mannlib.cornell.edu/default/vitro-kb-inf> ) + } OPTIONAL { GRAPH ?g6 { ?infoResource core:hasDateTimeValue ?dateTimeValue . - ?dateTimeValue core:dateTime ?dateTime . } } + ?dateTimeValue core:dateTime ?dateTime . } } } ORDER BY ?subclass DESC(?dateTime) ?infoResourceName diff --git a/productMods/config/listViewConfig-educationalTraining.xml b/productMods/config/listViewConfig-educationalTraining.xml index ed65a401..fa37fb76 100644 --- a/productMods/config/listViewConfig-educationalTraining.xml +++ b/productMods/config/listViewConfig-educationalTraining.xml @@ -2,6 +2,9 @@ +