Use cache in SparqlResourceImpl
Fix GetMetadataResourceImplTest