Re: RDFa DOM API (Fully merged)

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