We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0257ed commit 5469c03Copy full SHA for 5469c03
test/test_rdf_writer.py
@@ -195,3 +195,9 @@ def test_adding_other_entities_properties(self):
195
self.assertEqual(len(list(w.g.subjects(predicate=odmlns.hasDtype, object=Literal(p_dtype)))), 1)
196
self.assertEqual(len(list(w.g.subjects(predicate=odmlns.hasValueOrigin, object=Literal(p_value_origin)))), 1)
197
self.assertEqual(len(list(w.g.subjects(predicate=odmlns.hasReference, object=Literal(p_ref)))), 1)
198
+
199
+ def test_get_rdf_string(self):
200
+ w = RDFWriter([self.doc1])
201
+ w.get_rdf_str()
202
+ with self.assertRaises(ValueError):
203
+ w.get_rdf_str("abc")
0 commit comments