PREFIX rdf: PREFIX rdfs: PREFIX foaf: PREFIX dc: SELECT * { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } }