@classmethod
    def add_pd(cls, pds_url, pd):
        pds_url = cls.__remove_dbtype(pds_url)        
        pd_url =pds_url+"/" + pd.id
        pd_description_url = cls.__get_url(pd_url + "/description")
        logger.debug("PDS URL: %s, PD Description URL: %s"%(pds_url, pd_description_url))
        # directory is recursively created
        pd_desc_entry = saga.advert.entry(saga.url(pd_description_url),
                                           saga.advert.Create | saga.advert.CreateParents | saga.advert.ReadWrite)
        logger.debug("initialized advert entry for pds: " + pd_description_url)
        pd_desc_entry.store_string(json.dumps(pd.data_unit_description))
        return pd_url
dataset/ETHPy150Open saga-project/BigJob/pilot/coordination/advert_adaptor.py/AdvertCoordinationAdaptor.add_pd/original