Get all resources for a type as a hash with id as key
Add special cache invalidation to ontology