(self, name, value, ontology='text')
return self.add_attribute_list(
            name=name, values=[value], ontology=ontology)
Adds or modifies an attribute to the sketch.

        Args:
            name (str): The name of the attribute.
            value (str): Value of the attribute, stored as a string.
            ontology (str): The ontology (matches with
                /data/ontology.yaml), which defines
                how the attribute is interpreted.

        Raises:
            ValueError: If any of the parameters are of the wrong type.

        Returns:
            A dict with the results from the operation.
Adds or modifies an attribute to the sketch.
Adds or modifies an attribute to the sketch .
def add_attribute(self, name, value, ontology='text'):
        """Adds or modifies an attribute to the sketch.

        Args:
            name (str): The name of the attribute.
            value (str): Value of the attribute, stored as a string.
            ontology (str): The ontology (matches with
                /data/ontology.yaml), which defines
                how the attribute is interpreted.

        Raises:
            ValueError: If any of the parameters are of the wrong type.

        Returns:
            A dict with the results from the operation.
        """
        if not isinstance(name, str):
            raise ValueError('Name needs to be a string.')

        return self.add_attribute_list(
            name=name, values=[value], ontology=ontology)
def add_attribute ( self , name , value , ontology = 'text' ) : if not isinstance ( name , str ) : raise ValueError ( 'Name needs to be a string.' ) return self . add_attribute_list ( name = name , values = [ value ] , ontology = ontology )