W3C home > Mailing lists > Public > www-rdf-logic@w3.org > March 2001

Re: function terms in Euler, n3, and RDF [was: gedcom-relation e

From: <jos.deroo.jd@belgium.agfa.com>
Date: Wed, 7 Mar 2001 00:48:58 +0100
To: connolly@w3.org
Cc: www-rdf-logic@w3.org
Message-Id: <OFB18F3366.33267690-ON41256A07.0080A1F5@bayer-ag.com>

""" On 5 March 2001 DanC wrote """
>
> The other idiom is somewhat more traditional, making use of the list
> syntax-sugar in n3, where (a b) denotes the same thing
> as [ daml:first a; daml:rest [ daml:first b; daml:rest daml:nil ]].
> Using that, we can write "the pair 3,4 has sum 7: as
>   (3 4) :sum 7.

That notation is indeed very useful.
What about
  <> log:forAll :x.
  [ daml:first :a; daml:rest :x].
?
If we would write (:a :x) we get
  <> log:forAll :x.
  [ daml:first :a; daml:rest [ daml:first :x; daml:rest daml:nil ]].
We happen to use that quite often (for difference lists etc.)
The Prolog notation for that would be [a|x]
(and your example would be [a,b])

--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
Received on Tuesday, 6 March 2001 18:49:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:38 GMT