def simplesearch(root, qurl, apiroot): # Load topics #topicurl = apiroot + "/collabs/static/data/dataframe100_0.json" topicurl = apiroot + "/api/datasets?handle=Panel[%27hdl:10622/0PCZX5%27]" topicsframe = loadjson(topicurl) for item in topicsframe: topics = item['data'] # Input IDS = getindicators(qurl) datasets = dataset_search(root, IDS, topics) return datasets
def search(qurl): # Global settings config = configuration() root = config['dataverseroot'] # Load topics topicurl = config['apiroot'] + "/collabs/static/data/dataframe100_0.json" topics = loadjson(topicurl) # Input IDS = getindicators(qurl) datasets = dataset_search(root, IDS, topics) return datasets