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

Re: RDFa DOM API (Fully merged)

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Thu, 20 May 2010 00:42:31 -0400
Message-ID: <4BF4BDB7.7000603@digitalbazaar.com>
To: RDFa WG <public-rdfa-wg@w3.org>
On 05/19/2010 09:06 AM, Dan Brickley wrote:
>>        document.getObjectsBySubject
> 
> Yes, the subject/predicate/object terminology is sometimes useful, but
> in an API I'd suggest steering away from it if possible. Especially
> with the 'O' in DOM standing for object, it'll cause confusion.

This may be an argument for Mark's .describe() method... or something like:

.getItemsBySubject  -> data.describe()
.getItemsByType     -> data.byType()
.getItemsByProperty -> data.byProperty()

-- manu

-- 
Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: Bitmunk 3.2.2 - Good Relations and Ditching Apache+PHP
http://blog.digitalbazaar.com/2010/05/06/bitmunk-3-2-2/2/
Received on Thursday, 20 May 2010 04:59:46 UTC

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