def field_from_predicate(predicate)
      defined_prop = resource_class.properties.find { |_field_name, term| term.predicate == predicate }
      return unless defined_prop

      defined_prop.first
    end
def field_from_predicate(predicate)
      defined_prop = resource_class.properties.find { |_field_name, term| term.predicate == predicate }
      return unless defined_prop

      defined_prop.first
    end
Retrieve the attribute name for a field or relation,
 based on its defined RDF predicate

 @param [RDF::URI] predicate a URI for the RDF::Term
 @return [String, nil] name for the attribute