moved declaration of rdf-type field, so it's only used if the caller declares an rdf_type