def test_export_abstract_policy(self): """Test the abstract policy.""" graph = cx_to_rdf_graph(self.cx_json, policy='abstract') self.assertIsInstance(graph, Graph) print(f'\nResulting ABSRAC graph ({len(graph)} triplets):\n') print(graph.serialize(format='turtle').decode('utf-8'))
def test_export_predicate_policy(self): """Test the predicate policy.""" graph = cx_to_rdf_graph(self.cx_json, policy='predicate') self.assertIsInstance(graph, Graph) print(f'\nResulting PREDICATE graph ({len(graph)} triplets):\n') print(graph.serialize(format='turtle').decode('utf-8'))