re-implementing Evan's changes to RDFa library