build_profiles.py 文件源码

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

项目:rap-etl 作者: RAP-research-output-impact 项目源码 文件源码
def _vcard_email(self):
        g = Graph()
        try:
            emails = [e for e in self.profile["emails"].split("|")]
        except KeyError:
            try:
                emails = [self.profile['email']]
            except KeyError:
                emails = []
        for email in emails:
            vt = Resource(g, self.vcard_email_uri)
            vt.set(RDF.type, VCARD.Work)
            # Label probably not necessary
            vt.set(RDFS.label, Literal(email))
            vt.set(VCARD.email, Literal(email))
        return g
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号