change r2rml parser,manager to handle triples of the form:
(subj rdf:type template)
(subj template obj)

and generate terms of the form:
triple(subj, URI("...rdf_type"), URI(".."))
triple(subj, URI("....{}", var), obj)