Changed creating objects of RDF statements from using Resource class to using RDFNode