W3C home > Mailing lists > Public > public-rif-wg@w3.org > January 2007

RE: Approaching an XML syntax for RIF

From: Boley, Harold <Harold.Boley@nrc-cnrc.gc.ca>
Date: Tue, 30 Jan 2007 07:59:43 -0500
Message-ID: <E4D07AB09F5F044299333C8D0FEB45E902F6D1AF@nrccenexb1.nrc.ca>
To: "Christian de Sainte Marie" <csma@ilog.fr>, "Sandro Hawke" <sandro@w3.org>
Cc: <public-rif-wg@w3.org>

For an Interchange Format, fully striped syntax carries too much
baggage that can be easily reconstructed by a 'stripe expander'.

In http://www.w3.org/2005/rules/wg/wiki/CORE/Conditions/Positive

the stripe-skipped Example 2 (XSDizing $49 is a different issue)

  <And>
    <Exists>
      <Var>Buyer</Var>
      <Atom>
        <Con>purchase</Con>
        <Var>Buyer</Var>
        <Var>Seller</Var>
        <Expr>
          <Con>book</Con>
          <Var>Author</Var>
          <Con>LeRif</Con>
        </Expr>
        <Con>$49</Con>
      </Atom>
    </Exists>
    <Equal>
      <Var>Seller</Var>
      <Var>Author</Var>
    </Equal>
  </And>

can be easily expanded, on demand, to a fully striped

  <And>
    <formula>
      <Exists>
        <declare><Var>Buyer</Var></declare>
        <formula>
          <Atom>
            <op><Con>purchase</Con></op>
            <arg index="1"><Var>Buyer</Var></arg>
            <arg index="2"><Var>Seller</Var></arg>
            <arg index="3">
              <Expr>
                <op><Con>book</Con></op>
                <arg index="1"><Var>Author</Var></arg>
                <arg index="2"><Con>LeRif</Con></arg>
              </Expr>
            </arg>
            <arg index="4"><Con>$49</Con></arg>
          </Atom>
        </formula>
      </Exists>
    </formula>
    <formula>
      <Equal>
        <lhs><Var>Seller</Var></lhs>
        <rhs><Var>Author</Var></rhs>
      </Equal>
    </formula>
  </And>
 
-- Harold


-----Original Message-----
From: public-rif-wg-request@w3.org [mailto:public-rif-wg-request@w3.org]
On Behalf Of Christian de Sainte Marie
Sent: Tuesday, January 30, 2007 8:19 AM
To: Sandro Hawke
Cc: public-rif-wg@w3.org
Subject: Re: Approaching an XML syntax for RIF


Sandro Hawke wrote:
> 
> The idea of stripe-skipping is to say that we can omit certain
> XML elements -- skipping directly to their child elements -- because
> they carry only redundant information.

What is the benefit of stripe-skipping?

I agree with Dave: this seems to put forward and backward compatibility,

whereas the whole idea is to make extending dialects in a 
forward/backward compatible way easy.

In addition, it makes deriving the XML syntax from the abstract one more

complex.

Christian
Received on Tuesday, 30 January 2007 12:59:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:33:35 GMT