W3C home > Mailing lists > Public > www-archive@w3.org > May 2004

by-product of cwm/swap/n3 tutorial

From: Dan Connolly <connolly@w3.org>
Date: Tue, 18 May 2004 19:37:39 +0100
To: Tim Berners-Lee <timbl@w3.org>, Sandro Hawke <sandro@w3.org>
Cc: www-archive@w3.org
Message-Id: <1084904947.1653.24.camel@jammer>

I supplemented the slides by projecting an editor window.
Sometimes to project a URI, sometimes to correct a bug
in the slides. Below is a dump...


Semantic Web Tutorial Using N3
http://www.w3.org/2000/10/swap/doc/

:Mary :son [ = :Frank; a :Male];
      :son [ = :Bob; a :Male];
      :son [ = :Sam; a :Male].
      
      :Mary :son :Frank, :Bob, :Sam.
      :Frank a :Male.
      :Bob a :Male.
      :Sam a :Male.
      
      [ names:familyName "Hawke"; names:givenName "Sandro" ]
      
      
      _:somebody names:familyName "Hawke"; names:givenName "Sandro".



this log:forAll :x.
{:x :homePage ?P.

 ?P log:semantics ?F.
 ?F log:includes 
            { :x a :Vegetarian }}
=> { :x a :Vegetarian}. 

?F ::= { :DanBri a :HoopyFrood, :Vegetarian. }

:DanBri a :Vegetarian.


------------


this log:forAll :x.
{:x :homePage.log:semantics.log:notIncludes 
                  { :x a :Vegetarian }}
=> { :x a :Omnivore }. 


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Tuesday, 18 May 2004 14:38:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:44 GMT