Re: Query could be sub-Datasources

Axel Hecht <[email protected]> Mon, 30 May 2005 09:22:49 +0200
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
vaab wrote:
> 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

I have posted about the APIs going to a new direction on and off, I 
think. Filtering results will get easier and more performant, but I 
doubt that I will expose query results as databases in the standard API.

This smells like a tier2 API to me, too, which are out-of-scope of my 
current work.

Axel