On 21/12/2016 13:46, Andy Seaborne wrote: > > > On 21/12/16 12:23, George News wrote: >> szQuery = "" + " PREFIX dc: <http://purl.org/dc/elements/1.1/>" + " >> PREFIX foaf: <http://xmlns.com/foaf/0.1/>" + " SELECT ?graph ?who ?mbox" >> + " FROM NAMED <http://example.org/alice>" + " FROM NAMED >> <http://example.org/bob>" + " WHERE " + " { \n" + " ?graph dc:publisher >> ?who . " + " GRAPH ?graph { ?x foaf:mbox ?mbox . } " + " }"; > > Take out the FROM NAMED. > > Adding FROM or FROM NAMED creates a view of the original data - in this > case with just 2 named graphs. You don't want a view - you want the > real thing. > > Andy >
But then, how can I define to search only in some graphs? I was planning to have more than two in total, and only search on some of them. See you Jorge
