updated RDFa property and class assignment logic