string:search doesn't bind variables in lists as expected

Why do I get a ListAnswer but not a PartsAnswer?


$ cat ,search.n3 @prefix str: <http://www.w3.org/2000/10/swap/string#>.

{
  ("2006-01-12T16:00Z" "(....)-(..)-(..)T(..):(..)Z")
     str:search ?L
} => { ?L a <#ListAnswer> }.

{
  ("2006-01-12T16:00Z" "(....)-(..)-(..)T(..):(..)Z")
     str:search (?YYYY ?MM ?DD ?HH ?MM).
} => { (?YYYY ?MM ?DD ?HH ?MM) a <#PartsAnswer> }.


$ python cwm.py ,search.n3 --think --data
#Processed by Id: cwm.py,v 1.182 2005/12/21 06:17:03 vkolovsk Exp
        #    using base
file:/home/connolly/w3ccvs/WWW/2001/sw/DataAccess/,search.n3

#  Notation3 generation by
#       notation3.py,v 1.185 2005/11/02 00:06:26 timbl Exp

#   Base was:
file:/home/connolly/w3ccvs/WWW/2001/sw/DataAccess/,search.n3
     @prefix : <#> .

      ( "2006"
        "01"
        "12"
        "16"
        "00" )
         a :ListAnswer .

#ENDS


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Wednesday, 11 January 2006 17:15:00 UTC