function for processing rdf for LODStats