Search the web
Sign In
New User? Sign Up
jena-dev · Jena Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
ANN: SDB - A SPARQL database engine for Jena   Topic List   < Prev Topic  |  Next Topic >
Reply  | 
Is it possible to stream Jena SDB results?

I've checked out the HEAD revision of Jena SDB and adapted the
Layout2/Index store layout to support quads (adding, deleting, and
querying). It works great except for one problem, which I've also
observed when using the original layout and not querying graphs:
when I perform a query the entire result set is collected into a
list before I get the first solution. I understand that this is
neccessary when FILTER clauses, for example, are involved. But this
query doesn't have those, and should be streamable:

SELECT ?site ?title
WHERE {
GRAPH ?g1 { ?site rdf:type my:Site }
OPTIONAL { GRAPH ?g2 { ?site dc:title ?title } }
}

The ResultSetStream's queryExecutionIter shows this in the debugger:

QueryIterSingleton [Root]
QueryIterSQL
QueryIterProject ?site ?title

It doesn't seem to me like any of these iterators should need to
collect results into a list. Is it standard behavior for the
results of all queries to be collected into a list before the first
solution is available? If so, is there anything simple that I can
do to change it?

Thanks,
Hilton Campbell




Tue May 29, 2007 3:33 pm

squirrel_twi...
Offline Offline
Send Email Send Email

 | 
Expand Messages Author Sort by Date

This is the first release of SDB, a persistent storage subsystem for Jena that is designed around SPARQL. ...
Seaborne, Andy
andyseaborne
Offline Send Email
Feb 7, 2007
5:40 pm

... Hash: SHA1 ... <snip> ... Andy means Java 5. We're not that cutting edge ;-) (damn, jena-dev not getting through to my hp.com account :-( ) Damian ... ...
Damian Steer
pldms0
Offline Send Email
Feb 8, 2007
9:03 am

... Well I found out, I forgot to install Java, but it still worked well directly. Until now it works very well, I will continue to use it the next few weeks. ...
Leonard Levering
L_Levering
Offline Send Email
Feb 8, 2007
9:38 am

... True - but I only tested it with Java6 :-) ... Do let us know how you get on. All SPARQL queries should work correctly, just not faster than currently...
Seaborne, Andy
andyseaborne
Offline Send Email
Feb 8, 2007
10:28 am

I've checked out the HEAD revision of Jena SDB and adapted the Layout2/Index store layout to support quads (adding, deleting, and querying). It works great...
squirrel_twirler
squirrel_twi...
Offline Send Email
May 29, 2007
3:37 pm

... Cool - what did you have to change in SDB? (And when did you grab the SVN trunk?) ... That looks right. ... There is a limitation to JDBC in most...
Seaborne, Andy
andyseaborne
Offline Send Email
May 29, 2007
5:57 pm

... and ... I grabbed the trunk on 5/22. I'm not really sure what revision that was. I didn't need to change much with SDB itself, actually. I tried to...
squirrel_twirler
squirrel_twi...
Offline Send Email
May 30, 2007
12:14 am

My guilt level got exceeded :-) I've redone SQLBridgeBase/SQLBridgeBase1/SQLBridgeBase2 so that JDBC results are streamed. A QueryIterator gets wrapped around...
Seaborne, Andy
andyseaborne
Offline Send Email
May 30, 2007
1:13 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help