main.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:biolink-beacon 作者: NCATS-Tangerine 项目源码 文件源码
def get_predicates():

    """
    I'm not quite sure how to best get at all the predicates and tag them as relations with id's
    """

    """
    results = GolrAssociationQuery(
        rows=0,
        facet_fields=['relation']
    ).exec()

    facet_counts = results['facet_counts']

    relations = facet_counts['relation']

    return jsonify([{'id' : "biolink:"+c, 'name' : c, 'definition' : None} for key in relations])
    """
    # Not yet implemented... don't really know how
    return jsonify([])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号