I have a graph that is referenced 'Event1' in my default graph, with object 
properties "w:userFollowed" and "w:occurred".    This query works:

"SELECT DISTINCT ?graph ?time WHERE { ?graph w:action w:userFollowed; 
w:occurred ?time }"

This query works as well (which is in the named graph, Event1):

 "SELECT DISTINCT ?g ?follower ?followee WHERE { GRAPH ?g { ?follower w:follows 
?followee }}"

That finds the Event1 graph (and all the rest of the graphs fitting that 
pattern).  

Now I want to query that specific named graph (Event1), and have tried this:


"SELECT DISTINCT ?graph ?follower ?followee ?time" +
                " WHERE " +
                "{ " +
                    "{?graph w:action w:userFollowed; w:occurred ?time }" +
                "    { GRAPH ?graph { ?follower w:follows ?followee }}"   +
                "}"

But that returns no results.

What am I doing wrong?  I'm using in-memory Jena.

Reply via email to