Esempio n. 1
0
    def title(self, doi_lst=None):
        """
        """
        dois = listafy(doi_lst, self._corpus_info['d2c'])
	d2info = self._corpus_info['d2info']
	tlist = []
	for d in dois:
            (_,_,_,t,_) = d2info[d]
	    tlist.extend((d, t))
        return tlist
Esempio n. 2
0
    def article_type(self, doi_lst=None):
        """
        """
        dois = listafy(doi_lst, self._corpus_info['d2c'])
	d2info = self._corpus_info['d2info']
	alist = []
	for d in dois:
            (_,_,atype,_,_) = d2info[d] if d in d2info else (0,0,None,0,0) 
	    alist.extend((d, atype))
        return alist
Esempio n. 3
0
    def pub_date(self, doi_lst=None):
        """
        """
        dois = listafy(doi_lst, self._corpus_info['d2c'])
	d2info = self._corpus_info['d2info']
	dlist = []
	for d in dois:
            (_,pd,_,_,_) = d2info[d] if d in d2info else (0,None,0,0,0) 
	    dlist.extend((d, pd))
        return dlist
Esempio n. 4
0
    def authors(self, doi_lst=None):
        """
        Build a list of (doi , author) tuples.
	"""
        dois = listafy(doi_lst, self._corpus_info['d2c'])
	d2info = self._corpus_info['d2info']
	alist = []
	for d in dois:
            (_,_,_,_,authors) = d2info[d]
	    alist.extend([ (d, a) for a in authors])
        return alist
Esempio n. 5
0
 def doi2fid(self, doi_lst=None):
     """
     """
     dois = listafy(doi_lst, self._corpus_info['d2c']) 
     return zip(dois, doi2fn(dois, self._doc_part))
Esempio n. 6
0
    def articleXML(self, doi_lst=None):
        """
        """
	dois = listafy(doi_lst, self._corpus_info['d2c'])
	xmap = self._corpus_info['xml_link']
        return zip(dois, [ xmap[d] for d in dois ])
Esempio n. 7
0
    def articleURL(self, doi_lst=None):
        """
        """
	dois = listafy(doi_lst, self._corpus_info['d2c'])
	amap = self._corpus_info['article_link']
        return zip(dois, [ amap[d] for d in dois])