I'd like to be able to use SPARQL to get a list of all named graphs. 
(StoreUtils.storeGraphNames(store) will get that list in code, of course.)

I know that if the name of my graph and the "main" subject in it are the same 
(which is true in my case) I can do:

SELECT DISTINCT ?g
WHERE {
                {GRAPH ?g {?g ?p ?o}}
}

but that appears to take a long time. Using storeGraphNames() seems pretty much 
instantaneous and is more general.

Is there any way to do what I want?

Thanks,

Dave

David Lebling
Principal Software Engineer
BAE Systems, ACDS Group
6 New England Executive Park
Burlington, MA 01803
781-262-4426

Reply via email to