From fdc7f9e24a4c2faa7d89e94226c04f29789e6676 Mon Sep 17 00:00:00 2001 From: nklsbckmnn <52037235+nklsbckmnn@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:36:56 +0200 Subject: [PATCH] Update Wrapper.py Add json mime-type that prevents serialization of quoted/embedded triples in GraphDB, see https://graphdb.ontotext.com/documentation/10.7/rdf-sparql-star.htm --- SPARQLWrapper/Wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/SPARQLWrapper/Wrapper.py b/SPARQLWrapper/Wrapper.py index 977380a..e4ec6c0 100644 --- a/SPARQLWrapper/Wrapper.py +++ b/SPARQLWrapper/Wrapper.py @@ -153,6 +153,7 @@ _SPARQL_DEFAULT = ["application/sparql-results+xml", "application/rdf+xml", "*/*"] _SPARQL_XML = ["application/sparql-results+xml"] _SPARQL_JSON = [ + "application/x-sparqlstar-results+json", # prevents serialization of quoted/embedded triples in GraphDB, see https://graphdb.ontotext.com/documentation/10.7/rdf-sparql-star.html "application/sparql-results+json", "application/json", "text/javascript",