def org_total_counts(orgs):
#pcounts = incites_api.get_total_pubs(name)
g = Graph()
for org_name in orgs:
org_uri = waan_uri(org_name)
ln = local_name(org_uri)
pcounts = load_incites_json_file(org_name, 'total')
for item in pcounts:
curi = D['pubcount-' + ln + '-' + str(item['year'])]
g.add((curi, RDF.type, WOS.InCitesPubPerYear))
g.add((curi, RDFS.label, Literal("{} - {}".format(item['year'], item['count']))))
g.add((curi, WOS.number, Literal(item['count'])))
g.add((curi, WOS.year, Literal(item['year'])))
g.add((org_uri, VIVO.relates, curi))
ng = "http://localhost/data/incites-pub-year-counts"
backend.sync_updates(ng, g)
return True
评论列表
文章目录