add foaf:Document to wikipage and flattern wikipage triples