Fixed issue with named graphs. Modified example.