You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# "tsv", "rdf+xml" and "json-ld" are not supported as a correct "output"/"format" parameter value but "text/tab-separated-values" or "application/rdf+xml" are a valid values,
625
625
# and there is no problem to send both (4store does not support unexpected values).
626
626
ifself.returnFormatin [TSV, JSONLD, RDFXML]:
627
-
acceptHeader=self._getAcceptHeader() # to obtain the mime-type "text/tab-separated-values" or "application/rdf+xml"
627
+
acceptHeader=self._getAcceptHeader() # to obtain the mime-type "text/tab-separated-values" or "application/rdf+xml"
628
628
if"*/*"inacceptHeader:
629
-
acceptHeader=""# clear the value in case of "*/*"
629
+
acceptHeader=""# clear the value in case of "*/*"
630
630
query_parameters[f] += [acceptHeader]
631
631
632
632
pairs= (
@@ -648,9 +648,9 @@ def _getAcceptHeader(self):
648
648
acceptHeader=",".join(_SPARQL_XML)
649
649
elifself.returnFormat==JSON:
650
650
acceptHeader=",".join(_SPARQL_JSON)
651
-
elifself.returnFormat==CSV: # Allowed for SELECT and ASK (https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-success) but only described for SELECT (https://www.w3.org/TR/sparql11-results-csv-tsv/)
651
+
elifself.returnFormat==CSV: # Allowed for SELECT and ASK (https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-success) but only described for SELECT (https://www.w3.org/TR/sparql11-results-csv-tsv/)
652
652
acceptHeader=",".join(_CSV)
653
-
elifself.returnFormat==TSV: # Allowed for SELECT and ASK (https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-success) but only described for SELECT (https://www.w3.org/TR/sparql11-results-csv-tsv/)
653
+
elifself.returnFormat==TSV: # Allowed for SELECT and ASK (https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-success) but only described for SELECT (https://www.w3.org/TR/sparql11-results-csv-tsv/)
654
654
acceptHeader=",".join(_TSV)
655
655
else:
656
656
acceptHeader=",".join(_ALL)
@@ -688,7 +688,7 @@ def _createRequest(self):
688
688
request=None
689
689
690
690
ifself.isSparqlUpdateRequest():
691
-
#protocol details at http://www.w3.org/TR/sparql11-protocol/#update-operation
691
+
#protocol details at http://www.w3.org/TR/sparql11-protocol/#update-operation
# TODO. In order to compare properly, the requested QueryType (SPARQL Query Form) is needed. For instance, the unexpected N3 requested for a SELECT would return XML
1008
1010
if"content-type"inself.info():
1009
-
ct=self.info()["content-type"] # returned Content-Type value
1011
+
ct=self.info()["content-type"] # returned Content-Type value
description='SPARQL Endpoint interface to Python',
49
-
long_description='This is a wrapper around a SPARQL service. It helps in creating the query URI and, possibly, convert the result into a more manageable format.',
description='SPARQL Endpoint interface to Python',
51
+
long_description='This is a wrapper around a SPARQL service. It helps in creating the query URI and, possibly, convert the result into a more manageable format.',
0 commit comments