From b966540d94a12eb8bd61d4684a0be2119179a0d0 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Thu, 23 Dec 2010 20:01:30 +0000 Subject: [PATCH] NIHVIVO-1335, NIHVIVO-1336 Corrected dateTimeValue predicate in custom queries --- productMods/config/listViewConfig-authorInAuthorship.xml | 4 ++-- productMods/config/listViewConfig-educationalTraining.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/productMods/config/listViewConfig-authorInAuthorship.xml b/productMods/config/listViewConfig-authorInAuthorship.xml index 41e0ac80..f7bc3680 100644 --- a/productMods/config/listViewConfig-authorInAuthorship.xml +++ b/productMods/config/listViewConfig-authorInAuthorship.xml @@ -51,7 +51,7 @@ - PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> + PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> @@ -65,7 +65,7 @@ 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 . + OPTIONAL { GRAPH ?g6 { ?infoResource core:dateTimeValue ?dateTimeValue . ?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 fa37fb76..0be5db78 100644 --- a/productMods/config/listViewConfig-educationalTraining.xml +++ b/productMods/config/listViewConfig-educationalTraining.xml @@ -69,7 +69,7 @@ OPTIONAL { GRAPH ?g6 { ?edTraining core:majorField ?majorField } } OPTIONAL { GRAPH ?g7 { ?edTraining core:departmentOrSchool ?deptOrSchool } } OPTIONAL { GRAPH ?g8 { ?edTraining core:supplementalInformation ?info } } - OPTIONAL { GRAPH ?g9 { ?edTraining core:hasDateTimeValue ?dateTimeValue . + OPTIONAL { GRAPH ?g9 { ?edTraining core:dateTimeValue ?dateTimeValue . ?dateTimeValue core:dateTime ?dateTime } } } ORDER BY DESC(?dateTime)