From 7bf3dfb97c3a04630302a0dc0ccf027f1997e9d3 Mon Sep 17 00:00:00 2001 From: Joern Hees Date: Tue, 25 Aug 2015 13:57:36 +0200 Subject: [PATCH] drop deprecated SPARQLStore(..., bNodeAsURI) arg --- rdflib/plugins/stores/sparqlstore.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/rdflib/plugins/stores/sparqlstore.py b/rdflib/plugins/stores/sparqlstore.py index 9e0533cab..16d956406 100644 --- a/rdflib/plugins/stores/sparqlstore.py +++ b/rdflib/plugins/stores/sparqlstore.py @@ -14,7 +14,6 @@ import re import collections import urllib2 -import warnings try: from SPARQLWrapper import SPARQLWrapper, XML, POST, GET, URLENCODED, POSTDIRECTLY @@ -196,7 +195,7 @@ class SPARQLStore(NSSPARQLWrapper, Store): regex_matching = NATIVE_REGEX def __init__(self, - endpoint=None, bNodeAsURI=False, + endpoint=None, sparql11=True, context_aware=True, node_to_sparql=_node_to_sparql, node_from_result=_node_from_result, @@ -206,13 +205,6 @@ def __init__(self, super(SPARQLStore, self).__init__( endpoint, returnFormat=XML, **sparqlwrapper_kwargs) self.setUseKeepAlive() - self.bNodeAsURI = bNodeAsURI - if bNodeAsURI: - warnings.warn( - "bNodeAsURI argument was never supported and will be dropped " - "in favor of node_to_sparql and node_from_result args.", - category=DeprecationWarning, - ) self.node_to_sparql = node_to_sparql self.node_from_result = node_from_result self.nsBindings = {} @@ -549,7 +541,7 @@ class SPARQLUpdateStore(SPARQLStore): def __init__(self, queryEndpoint=None, update_endpoint=None, - bNodeAsURI=False, sparql11=True, + sparql11=True, context_aware=True, postAsEncoded=True, autocommit=True, **kwds @@ -558,7 +550,6 @@ def __init__(self, SPARQLStore.__init__( self, queryEndpoint, - bNodeAsURI, sparql11, context_aware, updateEndpoint=update_endpoint,