Skip to content

Commit

Permalink
drop deprecated SPARQLStore(..., bNodeAsURI) arg
Browse files Browse the repository at this point in the history
  • Loading branch information
joernhees committed Aug 27, 2015
1 parent 2e5b232 commit 7bf3dfb
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions rdflib/plugins/stores/sparqlstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import re
import collections
import urllib2
import warnings

try:
from SPARQLWrapper import SPARQLWrapper, XML, POST, GET, URLENCODED, POSTDIRECTLY
Expand Down Expand Up @@ -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,
Expand All @@ -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 = {}
Expand Down Expand Up @@ -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
Expand All @@ -558,7 +550,6 @@ def __init__(self,
SPARQLStore.__init__(
self,
queryEndpoint,
bNodeAsURI,
sparql11,
context_aware,
updateEndpoint=update_endpoint,
Expand Down

0 comments on commit 7bf3dfb

Please sign in to comment.