I didn't write this code I just moved it.  I think the case/when is just a nicer way of writing `if term.is_a? RDF::URI`