Fix some special cases for RDF as a vocabulary.