Return all annotation triples.
Fix WFE-1131. Improve detecting root folders and resources.