def node_to_sparql(node): if isinstance(node, BNode): return '<bnode:b%s>' % node return _node_to_sparql(node)
def my_bnode_ext(node): # Create a named node from a blank node if isinstance(node, BNode): return '<bnode:b%s>' % node return sparqlstore._node_to_sparql(node)