File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,22 @@ def test_triples_choices(self):
123
123
# Expect two selects: one for the first two choices plus one for the last one
124
124
self .assertEqual (sum (1 for c in children if isinstance (c , Select )), 2 )
125
125
126
+ def test_quoted_statements (self ):
127
+ '''
128
+ Regression test for RDFLib/rdflib-sqlalchemy#92
129
+ '''
130
+ cg = ConjunctiveGraph ('SQLAlchemy' )
131
+ cg .open ('sqlite://' , create = True )
132
+ testN3 = """
133
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
134
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
135
+ @prefix : <http://test/> .
136
+ {:a :b :c;a :foo} => {:a :d :c,?y}.
137
+ _:foo a rdfs:Class.
138
+ :a :d :c."""
139
+ cg .parse (data = testN3 , format = 'n3' )
140
+ # Doesn't raise an exception
141
+
126
142
127
143
if __name__ == "__main__" :
128
144
unittest .main ()
You can’t perform that action at this time.
0 commit comments