change to use defined? for rdf_type