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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
counting   Message List  
Reply | Forward Message #30652 of 42517 |
I'm facing a small challenge with counting.  Since SPARQL doesn't seem to have the ability to group/count I'm using the Jena api, specifically "listPropertyValues" then iterating. 
 
int count = i.listPropertyValues(Vocabulary.myChildren).toSet().size();
 
is that the conventional approach?
 
Taylor


Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.

Tue Aug 21, 2007 2:10 pm

taylor_cowan
Offline Offline
Send Email Send Email

Forward
Message #30652 of 42517 |
Expand Messages Author Sort by Date

I'm facing a small challenge with counting. Since SPARQL doesn't seem to have the ability to group/count I'm using the Jena api, specifically...
Taylor Cowan
taylor_cowan
Offline Send Email
Aug 21, 2007
2:18 pm

... Another (partial) solution is to count the result set : ResultSetFormatter.consume() reads and counts the results. Note : result set stream : if you want...
Seaborne, Andy
andyseaborne
Offline Send Email
Aug 21, 2007
4:49 pm
Advanced

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