In order to get all graphs URIs, one might use the Virtuoso DB.DBA.SPARQL_SELECT_KNOWN_GRAPHS() built-in function.