Note that some subclasses may not have a type attribute and for objects of those types, the URIReference.getType() method always returns null.
type
URIReference.getType()
null
URIDereferencer