Interface to RDF Datasource

vaab <[email protected]> Thu, 28 Apr 2005 11:47:49 +0200
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Why the interface of Datasource provided through nsIRDFDatasource is so 
complicated ?

I'm thinking of 2 things :

- why is there several query functions (ArcLabelsIn/Out, GetTarget, 
GetSource...), where one function could do the same ? (as in RAP (a php 
librairy for manipulating RDF)

function find(a,b,c)

where a,b,c could be null. Find could return a nsISimpleEnumerator 
holding Triples. Access to triples would need 3 functions 
(getSubject/Predicate/Object).

- Decisions should be taken to whether the truth statement should be 
used or not.

Valentin