More notes on DataStore

Hi All, Manu,

Some light general notes on DataStore interface:

It lacks any existential or universal quantification (.some, .every)

It lacks any way to remove or modify triples (all you can do is keep 
adding) - I quite like this though as it does make more sense RDF wise 
to either keep augmenting the graph, or to filter and create a new graph 
then add what you wanted to change.

It lacks any kind of .contains(RDFTriple triple) method, although 
universal and existential quantification methods could handle this 
functionality nicer and handle containsSubject / containsProperty / 
containsSubjectAndObject (and all variants of) type functionality.

a .toNT method would be really nice on this interface.

a registerPropertyAction( property, callback ) would be a *really* nice 
addition that would allow smushing and cater for some really nice async 
ways of working with RDF - this said most usecases can be handled with 
.forEach

Best,

Nathan

Received on Sunday, 19 September 2010 17:35:30 UTC