VIVO-669: remove ARQ functions substring and now

Still need to find replacement for localname and namespace
This commit is contained in:
Patrick McElwee 2015-06-25 14:41:36 -04:00
parent 46695e9ba2
commit 517d97ba91
28 changed files with 18 additions and 44 deletions

View file

@ -7,7 +7,6 @@
<query-select>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX fn: &lt;http://www.w3.org/2005/xpath-functions#&gt;
@ -41,7 +40,7 @@
}
# Get current positions only: end date is either null or not in the past
FILTER ( !bound(?dateTimeEnd) ||
afn:substring(str(?dateTimeEnd), 0, 4) &gt;= afn:substring(str(afn:now()), 0, 4) )
substr(str(?dateTimeEnd), 1, 4) &gt;= substr(str(now()), 1, 4) )
<critical-data-required>
FILTER ( bound(?person) )
</critical-data-required>