Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
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