def _sanitize_triple(self, triple):
    'Santizes the triple to contains pure rdflib terms.'
    (s, p, o) = triple
    if isinstance(s, Node):
        s = s._node
    if isinstance(o, Node):
        o = o._node
    elif ((o is not None) and (not isinstance(o, rdflib.term.Node))):
        o = rdflib.Literal(o)
    if ((p is not None) and (not isinstance(p, rdflib.term.Node))):
        p = CASE[p]
    return (s, p, o)
Santizes the triple to contains pure rdflib terms.
def _sanitize_triple(self, triple):
    
    (s, p, o) = triple
    if isinstance(s, Node):
        s = s._node
    if isinstance(o, Node):
        o = o._node
    elif ((o is not None) and (not isinstance(o, rdflib.term.Node))):
        o = rdflib.Literal(o)
    if ((p is not None) and (not isinstance(p, rdflib.term.Node))):
        p = CASE[p]
    return (s, p, o)