W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > June 2004

[closed] Re: CWM Bug: Strings Returned from Builtins Incompatible with log:semantics

From: Tim Berners-Lee <timbl@w3.org>
Date: Sat, 19 Jun 2004 08:06:32 -0400
Message-Id: <1A54CC7D-C1E9-11D8-9DC2-000A9580D8C0@w3.org>
Cc: public-cwm-bugs@w3.org
To: Sean Palmer <sean@mysterylights.com>

Sean,

You have the wrong builtin.  log:semantics works on resources.

<foo.rdf> log:semantics ?F.

You need log:parsedAsN3:

$ cwm http://www.w3.org/2000/10/swap/test/includes/sbp1.n3 --think
#Processed by Id: cwm.py,v 1.150 2004/06/08 15:16:45 syosi Exp
         #    using base 
http://www.w3.org/2000/10/swap/test/includes/sbp1.n3

#  Notation3 generation by
#       notation3.py,v 1.154 2004/05/12 01:27:08 timbl Exp

#   Base was: http://www.w3.org/2000/10/swap/test/includes/sbp1.n3
      @prefix : <#> .
      @prefix log: <../../log#> .
      @prefix string: <../../string#> .

     this     log:forAll :p,
                 :q,
                 :r,
                 :s .

     <http://example.com/x>     <http://example.com/y> 
<http://example.com/z> .
     {

           ( "@prefix : <http://example.com/>. :x :y :z "
             "."  )
              string:concatenation  [
                  log:parsedAsN3 :s ] .
         :s     log:includes {:p     :q :r .
             } .

         }     log:implies {:p     :q :r .
         } .

#ENDS
$
Received on Sunday, 20 June 2004 08:10:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:58 GMT