File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def main():
41
41
42
42
in_graph = rdflib .Graph ()
43
43
for in_graph_filename in args .in_graph :
44
- in_graph .parse (in_graph_filename , format = case_utils . guess_format ( in_graph_filename ) )
44
+ in_graph .parse (in_graph_filename )
45
45
_logger .debug ("len(in_graph) = %d." , len (in_graph ))
46
46
47
47
out_graph = rdflib .Graph ()
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def main():
55
55
56
56
graph = rdflib .Graph ()
57
57
for in_graph_filename in args .in_graph :
58
- graph .parse (in_graph_filename , format = case_utils . guess_format ( in_graph_filename ) )
58
+ graph .parse (in_graph_filename )
59
59
60
60
# Inherit prefixes defined in input context dictionary.
61
61
nsdict = {k :v for (k ,v ) in graph .namespace_manager .namespaces ()}
Original file line number Diff line number Diff line change 39
39
40
40
def load_graph (filename ):
41
41
in_graph = rdflib .Graph ()
42
- in_graph .parse (filename , format = rdflib . util . guess_format ( filename ) )
42
+ in_graph .parse (filename )
43
43
return in_graph
44
44
45
45
@pytest .fixture
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def _test_templates_with_blank_nodes_result(filename):
23
23
ground_truth_negative = set()
24
24
25
25
graph = rdflib.Graph()
26
- graph.parse(filename, format=case_utils.guess_format(filename) )
26
+ graph.parse(filename)
27
27
28
28
computed = set()
29
29
query_string = """\
Original file line number Diff line number Diff line change 24
24
def main ():
25
25
g = rdflib .Graph ()
26
26
for in_graph in args .in_graph :
27
- g .parse (in_graph , format = case_utils . guess_format ( in_graph ) )
28
- g .serialize (args .out_graph , format = case_utils . guess_format ( args . out_graph ) )
27
+ g .parse (in_graph )
28
+ g .serialize (args .out_graph )
29
29
30
30
if __name__ == "__main__" :
31
31
import argparse
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ def main():
52
52
g1 = rdflib .Graph ()
53
53
g2 = rdflib .Graph ()
54
54
55
- g1 .parse (args .in_graph_1 , format = case_utils . guess_format ( args . in_graph_1 ) )
56
- g2 .parse (args .in_graph_2 , format = case_utils . guess_format ( args . in_graph_2 ) )
55
+ g1 .parse (args .in_graph_1 )
56
+ g2 .parse (args .in_graph_2 )
57
57
58
58
#_logger.debug("type(g1) = %r.", type(g1))
59
59
#_logger.debug("type(g2) = %r.", type(g2))
You can’t perform that action at this time.
0 commit comments