Revert "Removed RDF variables when module not enabled."

This reverts commit f650bf4c24438b1e5d53e91c769e4309ca6c7492.