handling retrieved rdf