W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > November 2010

PROPOSAL to close ISSUE-52: ECMAScript alignment

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 15 Nov 2010 20:15:12 -0500
Message-ID: <4CE1DB20.4090704@digitalbazaar.com>
To: RDFa WG <public-rdfa-wg@w3.org>
If there are no objections to this proposal in 7 days, we will close
ISSUE-52: ECMAScript alignment.

http://www.w3.org/2010/02/rdfa/track/issues/52

This proposal is based on thorough discussion that happened on the
telecon last week:

http://www.w3.org/2010/02/rdfa/meetings/2010-11-11#ISSUE__2d_52__3a__Lightweight_DataStore_aligned_with_ECMAScript

The link above contains a detailed account of each change outlined in
ISSUE-52. Rather than re-hash the arguments in the discussion, the
proposed WebIDL is provided below. Note that there was general agreement
to change the concept of DataStore to RDFGraph, the new RDFa API will
not mention DataStore. Thanks go to Nathan for providing the updated WebIDL.

interface RDFGraph {
    readonly attribute unsigned long length;

    RDFTriple           get (in unsigned long index);
    void                add (in RDFTriple triple);
    sequence<RDFTriple> toArray();

    boolean             some(in RDFTripleFilter callback);
    boolean             every(in RDFTripleFilter callback);

    RDFGraph            filter (in RDFTripleFilter filter);
    void                forEach (in RDFTripleCallback callback);

    RDFGraph            merge(in RDFGraph graph);
};

[Callback]
interface RDFTripleCallback {
    void run (in RDFTriple triple,
              in optional unsigned long index,
              in optional RDFGraph graph);
};

[Callback]
interface RDFTripleFilter {
    boolean match (in RDFTriple triple,
                   in optional unsigned long index,
                   in optional RDFGraph graph);
};

Please comment in 7 days from this post if you object to this proposal.
If there are no objections within 7 days, ISSUE-52 will be closed.

-- manu

-- 
Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: Linked Data in JSON
http://digitalbazaar.com/2010/10/30/json-ld/
Received on Tuesday, 16 November 2010 01:15:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:50 UTC