Dear all,

This example run with Fuseki 3.17:

--------------------------------------------------------------------
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?y ?d (xsd:dayTimeDuration(?age) as ?a1)
             (xsd:yearMonthDuration(?age) as ?a2)
where {
  bind ( xsd:date("1984-12-01") as ?y)
  bind ( xsd:date("1944-05-06") as ?d)
  bind ((?y-?d) as ?age )       
}
-------------------------------------------------------------------

Gives unexpected results:

------------------------------------------------------------------
y,d,a1,a2
1984-12-01,1944-05-06,P14484DT0H0M0.000S,P0M
------------------------------------------------------------------

I was expecting the variable "a2" to contain the duration expressed in Years and Months, but instead it is zero.


What am I doing wrong here?

Best,

Harri Kiiskinen
--
Tutkijatohtori / post-doctoral researcher
Movie Making Finland: Finnish fiction films as audiovisual big data, 1907–2017 (MoMaF)
Turun yliopisto / University of Turku

Reply via email to