Implement part of populateProjectUriMap

Basic algorithm to perform one query for each artifact to get its
project label.

Requires a new getTopObject method that returns a model containing the
details of the top object.