示例#1
0
def node_to_sparql(node):
    if isinstance(node, BNode):
        return '<bnode:b%s>' % node
    return _node_to_sparql(node)
示例#2
0
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)