Have been writing an rdfstore in python based on Steve Harris' excellent 3store. It is designed to handle IFPs efficiently, by replacing all the hashes in 3store with ids. These then link to a URI table enabling a 1-many resource to URI mapping.