Factoring the generation of RDF triples related to the root context into its own class