def create_abstract_tag(self, tag, description=None, indexed=True,
                            inPref=False):
        absTag = self.abs_tag_path(tag, inPref=inPref)
        (user, subnamespace, tagname) = self.tag_path_split(absTag)
        if subnamespace:
            fullnamespace = u'/tags/%s/%s' % (user, subnamespace)
        else:
            fullnamespace = u'/tags/%s' % user
        hash = {u'indexed': indexed, u'description': description or '',
                u'name': tagname}
        fields = json.dumps(hash)
        (status, o) = self.call(u'POST', fullnamespace, fields)
        if status == STATUS.NOT_FOUND:
            namespace = u'/%s/%s' % (user, subnamespace)
            id = self.create_namespace(namespace)
            if type(id) in types.StringTypes:  # is an ID
                (status, o) = self.call(u'POST', fullnamespace, fields)
            else:
                raise FailedToCreateNamespaceError(u'FDB could not create'
                        u' the required namespace %s' % namespace)
        return O(o, id=o[u'id']) if status == STATUS.CREATED else status
Creates an (abstract) tag with the name (full path) given.
dataset/ETHPy150Open njr0/fish/fish/fishlib.py/Fluidinfo.create_abstract_tag