Ejemplo n.º 1
0
 def getTopicDistributionGivenPub(self, id):
     params = interface_pb2.IntQueryParams()
     params.ids.extend(id)
     # params.returned_fields.extend(returned_fields)
     method = "ACTService_getTopicDistributionGivenPub"
     response = request(self.endpoint, method, params)
     result = interface_pb2.PublicationResult.FromString(response.data)
     return result
Ejemplo n.º 2
0
 def getPublicationsByConfId(self, ids, returned_fields=["id", "title", "year", "conf_id", 
                                                      "jconf_name", "abs", "n_citations", 
                                                      "author_ids", "authors", "topic",
                                                      "cite_pubs", "cited_by_pubs"]):
     params = interface_pb2.IntQueryParams()
     params.ids.extend(ids)
     params.offset = 0
     params.count = 1000000
     params.returned_fields.extend(returned_fields)
     method = "PubService_getPublicationsByConfId"
     response = request(self.endpoint, method, params)
     result = interface_pb2.PublicationResult.FromString(response.data)
     return result