def add(self, property, value):
    'Adds a property and its value to the node.'
    if (value is None):
        return
    if isinstance(value, (list, tuple, set)):
        for item in value:
            self.add(property, item)
        return
    if isinstance(value, Node):
        value = value._node
    elif (not isinstance(value, rdflib.term.Node)):
        value = rdflib.Literal(value)
    if (not isinstance(property, rdflib.term.Node)):
        property = self.NAMESPACE[property]
    self._graph.add((self._node, property, value))
Adds a property and its value to the node.
def add(self, property, value):
    
    if (value is None):
        return
    if isinstance(value, (list, tuple, set)):
        for item in value:
            self.add(property, item)
        return
    if isinstance(value, Node):
        value = value._node
    elif (not isinstance(value, rdflib.term.Node)):
        value = rdflib.Literal(value)
    if (not isinstance(property, rdflib.term.Node)):
        property = self.NAMESPACE[property]
    self._graph.add((self._node, property, value))