Skip to content

Commit 99f222a

Browse files
committed
Adding a regression test for #92
1 parent ecc0c4b commit 99f222a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/test_sqlalchemy.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,22 @@ def test_triples_choices(self):
123123
# Expect two selects: one for the first two choices plus one for the last one
124124
self.assertEqual(sum(1 for c in children if isinstance(c, Select)), 2)
125125

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+
126142

127143
if __name__ == "__main__":
128144
unittest.main()

0 commit comments

Comments
 (0)