Added prototype of the functionality to get the root resources, and a prototype to recursively loop through ever resource, it's predicates, literals and possible resources.