diff options
author | Donny Winston <dwinston@alum.mit.edu> | 2020-05-06 18:20:07 -0400 |
---|---|---|
committer | Donny Winston <dwinston@alum.mit.edu> | 2020-05-06 18:20:07 -0400 |
commit | 67a47f3b6cc87c827d50ad67a6d9384b29b028ed (patch) | |
tree | 2b215f6afd9129bd2cddf4c0584bd0947ff3b1fd /test | |
parent | f6fde7ed2bbd75793083631c04ae69bdc2496383 (diff) | |
download | rdflib-67a47f3b6cc87c827d50ad67a6d9384b29b028ed.tar.gz |
Support SERVICE case-insensitively
Diffstat (limited to 'test')
-rw-r--r-- | test/test_sparql_service.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_sparql_service.py b/test/test_sparql_service.py index 45cb84a0..19f713c3 100644 --- a/test/test_sparql_service.py +++ b/test/test_sparql_service.py @@ -99,6 +99,7 @@ def test_service_with_implicit_select_and_prefix(): for r in results: assert len(r) == 3 + def test_service_with_implicit_select_and_base(): g = Graph() q = '''base <http://example.org/> @@ -116,6 +117,20 @@ def test_service_with_implicit_select_and_base(): assert len(r) == 3 +def test_service_with_implicit_select_and_allcaps(): + g = Graph() + q = '''SELECT ?s + WHERE + { + SERVICE <http://dbpedia.org/sparql> + { + ?s <http://purl.org/linguistics/gold/hypernym> <http://dbpedia.org/resource/Leveller> . + } + } LIMIT 3''' + results = g.query(q) + assert len(results) == 3 + + #def test_with_fixture(httpserver): # httpserver.expect_request("/sparql/?query=SELECT * WHERE ?s ?p ?o").respond_with_json({"vars": ["s","p","o"], "bindings":[]}) # test_server = httpserver.url_for('/sparql') |