Skip to content

Commit

Permalink
Update Wrapper.py
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nklsbckmnn authored Sep 7, 2024
1 parent 2a6e2d3 commit fdc7f9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SPARQLWrapper/Wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fdc7f9e

Please sign in to comment.