Query could be sub-Datasources

vaab <[email protected]> Tue, 24 May 2005 09:19:47 +0200
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,

In my application I will need to access queries in RDF Datasource as new 
datasources. I call "query" the selection of a sub-graph of the whole 
graph defined by RDF Datasource. This is done for exemple in templates. 
Its a sort of filter.

RDF Engine of firefox doesn't seem to support this natively. Instead, 
solutions of a "filter" (as GetTarget, GetSource, ArcLabelsOut...) are 
outputed as nsIRDFSimpleEnumerator. Thus keeping us away of the 
possibilities of "saving" this sub-graph for further natural queries. 
Instead, we must loop in the nsIRDFSimpleEnumerator and try to apply our 
filters...

I'm aware that a lot of the choices of firefox where fixed with speed 
efficiency in mind rather than programming conveniency. Is this the 
reason of this choice ?

It is a first problem in this point of view. But secondly, there are 
some other needs of a graph/sub-graph way of working. Rather than having 
a few Memory datasource, we could have myriads of graph/sub-graph which 
could be queryed as a datasource would be. This would ease also 
operation on graphs.

Note that this is the way RAP PHP libs can be used, and this could be 
implemented in firefox while offering compatibility with actual syntax.

Valentin