Re: SPARQL

Axel Hecht <[email protected]> Mon, 10 Dec 2007 18:53:55 +0100
Newsgroups gmane.comp.mozilla.devel.rdf
Message-ID <[email protected]>
Eric Prud'hommeaux wrote:
> * Axel Hecht <[email protected]> [2007-12-06 11:56+0530]
>> Marcus G. Daniels wrote:
>>> Hi,
>>>
>>> Has anyone thought about putting a triple store / SPARQL query processor 
>>> into Firefox?
>>>
>> I thought about it, but I'm not too fond of that API myself. There is a 
>> more js-friendly API approach I took recently on 
>> http://hg.mozilla.org/users/axel_mozilla.com/rdf2/?file/cdbb088c4a5b
> 
> Looking at
>   http://hg.mozilla.org/users/axel_mozilla.com/rdf2/?raw-file/cdbb088c4a5b/docs/index/General.html
> I didn't get a sense of how this API is used. Does it permit you to
> query for arbitrary graph patterns? Is there a HelloWorld I can look
> at?

http://hg.mozilla.org/users/axel_mozilla.com/rdf2/?file/cdbb088c4a5b/test_api.js 
isn't really hello world, but it's what I used for running some queries.

If you checked out the rep on 
hg.mozilla.org/users/axel_mozilla.com/rdf2, 
http://hg.mozilla.org/users/axel_mozilla.com/rdf2/?raw-file/cdbb088c4a5b/docs/files/api-js.html 
would look better, I'm not saying that it'd be great docs, though.

To answer your question though, no, it doesn't support arbitrary graph 
patterns, in particular, it doesn't support '..' in xpath lingo, i.e., 
arbitrary depth wildcards. I though sparql does, not sure if that's true 
or not.

The setup is totally different to sparql, of course, as it's working on 
js objects rather than turtle strings. Think more jQuery and less SQL.

Axel