W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > January 2006

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

From: Dan Connolly <connolly@w3.org>
Date: Wed, 11 Jan 2006 11:14:55 -0600
To: public-cwm-bugs@w3.org
Message-Id: <1136999695.19546.187.camel@dirk.w3.org>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC