Helper code to create interaction triples based on the CONSTRUCT queries from wp2lod.