NIHVIVO-1335, NIHVIVO-1336 Corrected dateTimeValue predicate in custom queries

This commit is contained in:
rjy7 2010-12-23 20:01:30 +00:00
parent 812ce421d5
commit b966540d94
2 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@
<list-view-config> <list-view-config>
<query> <query>
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;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt; PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
@ -65,7 +65,7 @@
FILTER (?g5 != &lt;http://vitro.mannlib.cornell.edu/default/inferred-tbox&gt; &amp;&amp; FILTER (?g5 != &lt;http://vitro.mannlib.cornell.edu/default/inferred-tbox&gt; &amp;&amp;
?g5 != &lt;http://vitro.mannlib.cornell.edu/default/vitro-kb-inf&gt; ) ?g5 != &lt;http://vitro.mannlib.cornell.edu/default/vitro-kb-inf&gt; )
} }
OPTIONAL { GRAPH ?g6 { ?infoResource core:hasDateTimeValue ?dateTimeValue . OPTIONAL { GRAPH ?g6 { ?infoResource core:dateTimeValue ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime . } } ?dateTimeValue core:dateTime ?dateTime . } }
} ORDER BY ?subclass DESC(?dateTime) ?infoResourceName } ORDER BY ?subclass DESC(?dateTime) ?infoResourceName
</query> </query>

View file

@ -69,7 +69,7 @@
OPTIONAL { GRAPH ?g6 { ?edTraining core:majorField ?majorField } } OPTIONAL { GRAPH ?g6 { ?edTraining core:majorField ?majorField } }
OPTIONAL { GRAPH ?g7 { ?edTraining core:departmentOrSchool ?deptOrSchool } } OPTIONAL { GRAPH ?g7 { ?edTraining core:departmentOrSchool ?deptOrSchool } }
OPTIONAL { GRAPH ?g8 { ?edTraining core:supplementalInformation ?info } } 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 } } ?dateTimeValue core:dateTime ?dateTime } }
} ORDER BY DESC(?dateTime) } ORDER BY DESC(?dateTime)