Skip to content

Commit f0fc37f

Browse files
authored
Merge pull request #427 from tcmitchell/426-rdflib-graph-parse
Use `Graph.parse` instead of `Graph.load`
2 parents 2785946 + ac99b55 commit f0fc37f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_crispr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def test_crispr_example(self):
3636
self.assertTrue(os.path.exists(out_path))
3737
# Load the output
3838
actual_graph = rdflib.Graph()
39-
actual_graph.load(out_path)
39+
actual_graph.parse(out_path)
4040
actual_iso = rdflib.compare.to_isomorphic(actual_graph)
4141
# Load the expected output
4242
expected_graph = rdflib.Graph()
43-
expected_graph.load(EXPECTED_SBOL)
43+
expected_graph.parse(EXPECTED_SBOL)
4444
expected_iso = rdflib.compare.to_isomorphic(expected_graph)
4545
rdf_diff = rdflib.compare.graph_diff(expected_iso, actual_iso)
4646
if rdf_diff[1] or rdf_diff[2]:

test/test_roundtrip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def run_round_trip_file(self, test_path):
5252

5353
# Now compare the graphs in RDF
5454
g1 = rdflib.Graph()
55-
g1.load(test_path)
55+
g1.parse(test_path)
5656
iso1 = rdflib.compare.to_isomorphic(g1)
5757
g2 = rdflib.Graph()
58-
g2.load(test2_path)
58+
g2.parse(test2_path)
5959
iso2 = rdflib.compare.to_isomorphic(g2)
6060
rdf_diff = rdflib.compare.graph_diff(iso1, iso2)
6161
if rdf_diff[1] or rdf_diff[2]:

0 commit comments

Comments
 (0)