def test_dcCreatorRendering(self): """Check how a simple statement about authorship looks""" tl = Triplink("http://live.dbpedia.org/page/Siluosaurus?tl_p=http://purl.org/dc/terms/creator&triplink=http://purl.org/triplink/v/0.1&tl_s=.",rendering_template_path="./triplink_template.json") self.assertEqual(tl.render("statement"), "The person or agent http://live.dbpedia.org/page/Siluosaurus is a creator of this resource: .")
def test_defaultRendering(self): """Check how a simple statement looks""" tl = Triplink("http://live.dbpedia.org/page/Siluosaurus?tl_p=http://purl.org/dc/terms/creator&triplink=http://purl.org/triplink/v/0.1&tl_s=.") self.assertEqual(tl.render("statement"), "Subject: . Predicate: http://purl.org/dc/terms/creator Object: http://live.dbpedia.org/page/Siluosaurus)")