@@ -29,53 +29,40 @@ def negative_graph_match_test():
2929 """Test of FRIR identifiers against tricky RDF graphs with blank nodes."""
3030 testInputs = [ # noqa: N806
3131 [
32- str (
33- """@prefix : <http://example.org/ns#> .
32+ """@prefix : <http://example.org/ns#> .
3433 <http://example.org> :rel
3534 [ :label "Same" ].
36- """
37- ),
38- str (
39- """@prefix : <http://example.org/ns#> .
35+ """ ,
36+ """@prefix : <http://example.org/ns#> .
4037 <http://example.org> :rel
4138 [ :label "Same" ],
4239 [ :label "Same" ].
43- """
44- ),
40+ """ ,
4541 False ,
4642 ],
4743 [
48- str (
49- """@prefix : <http://example.org/ns#> .
44+ """@prefix : <http://example.org/ns#> .
5045 <http://example.org> :rel
5146 <http://example.org/a>.
52- """
53- ),
54- str (
55- """@prefix : <http://example.org/ns#> .
47+ """ ,
48+ """@prefix : <http://example.org/ns#> .
5649 <http://example.org> :rel
5750 <http://example.org/a>,
5851 <http://example.org/a>.
59- """
60- ),
52+ """ ,
6153 True ,
6254 ],
6355 [
64- str (
65- """@prefix : <http://example.org/ns#> .
56+ """@prefix : <http://example.org/ns#> .
6657 :linear_two_step_symmetry_start :related [ :related [ :related :linear_two_step_symmatry_end]],
67- [ :related [ :related :linear_two_step_symmatry_end]]."""
68- ),
69- str (
70- """@prefix : <http://example.org/ns#> .
58+ [ :related [ :related :linear_two_step_symmatry_end]].""" ,
59+ """@prefix : <http://example.org/ns#> .
7160 :linear_two_step_symmetry_start :related [ :related [ :related :linear_two_step_symmatry_end]],
72- [ :related [ :related :linear_two_step_symmatry_end]]."""
73- ),
61+ [ :related [ :related :linear_two_step_symmatry_end]].""" ,
7462 True ,
7563 ],
7664 [
77- str (
78- """@prefix : <http://example.org/ns#> .
65+ """@prefix : <http://example.org/ns#> .
7966 _:a :rel [
8067 :rel [
8168 :rel [
@@ -84,10 +71,8 @@ def negative_graph_match_test():
8471 ];
8572 ];
8673 ];
87- ]."""
88- ),
89- str (
90- """@prefix : <http://example.org/ns#> .
74+ ].""" ,
75+ """@prefix : <http://example.org/ns#> .
9176 _:a :rel [
9277 :rel [
9378 :rel [
@@ -98,14 +83,12 @@ def negative_graph_match_test():
9883 ];
9984 ];
10085 ];
101- ]."""
102- ),
86+ ].""" ,
10387 False ,
10488 ],
10589 # This test fails because the algorithm purposefully breaks the symmetry of symetric
10690 [
107- str (
108- """@prefix : <http://example.org/ns#> .
91+ """@prefix : <http://example.org/ns#> .
10992 _:a :rel [
11093 :rel [
11194 :rel [
@@ -114,10 +97,8 @@ def negative_graph_match_test():
11497 ];
11598 ];
11699 ];
117- ]."""
118- ),
119- str (
120- """@prefix : <http://example.org/ns#> .
100+ ].""" ,
101+ """@prefix : <http://example.org/ns#> .
121102 _:a :rel [
122103 :rel [
123104 :rel [
@@ -126,13 +107,11 @@ def negative_graph_match_test():
126107 ];
127108 ];
128109 ];
129- ]."""
130- ),
110+ ].""" ,
131111 True ,
132112 ],
133113 [
134- str (
135- """@prefix : <http://example.org/ns#> .
114+ """@prefix : <http://example.org/ns#> .
136115 _:a :rel [
137116 :rel [
138117 :label "foo";
@@ -142,10 +121,8 @@ def negative_graph_match_test():
142121 ];
143122 ];
144123 ];
145- ]."""
146- ),
147- str (
148- """@prefix : <http://example.org/ns#> .
124+ ].""" ,
125+ """@prefix : <http://example.org/ns#> .
149126 _:a :rel [
150127 :rel [
151128 :rel [
@@ -154,13 +131,11 @@ def negative_graph_match_test():
154131 ];
155132 ];
156133 ];
157- ]."""
158- ),
134+ ].""" ,
159135 False ,
160136 ],
161137 [
162- str (
163- """@prefix : <http://example.org/ns#> .
138+ """@prefix : <http://example.org/ns#> .
164139 _:0001 :rel _:0003, _:0004.
165140 _:0002 :rel _:0005, _:0006.
166141 _:0003 :rel _:0001, _:0007, _:0010.
@@ -171,10 +146,8 @@ def negative_graph_match_test():
171146 _:0008 :rel _:0004, _:0006, _:0010.
172147 _:0009 :rel _:0004, _:0005, _:0007.
173148 _:0010 :rel _:0003, _:0006, _:0008.
174- """
175- ),
176- str (
177- """@prefix : <http://example.org/ns#> .
149+ """ ,
150+ """@prefix : <http://example.org/ns#> .
178151 _:0001 :rel _:0003, _:0004.
179152 _:0002 :rel _:0005, _:0006.
180153 _:0003 :rel _:0001, _:0007, _:0010.
@@ -185,8 +158,7 @@ def negative_graph_match_test():
185158 _:0005 :rel _:0002, _:0007, _:0009.
186159 _:0006 :rel _:0002, _:0008, _:0010.
187160 _:0007 :rel _:0003, _:0005, _:0009.
188- """
189- ),
161+ """ ,
190162 True ,
191163 ],
192164 ]
0 commit comments