grants¶
Overview¶
baseGrant¶
-
class
metaknowledge.grants.baseGrant.
FallbackGrant
(original, grantdDict, sFile='', sLine=0) A subclass of Grant, it has the same attributes and is returned from the fall back constructor for grants.
-
class
metaknowledge.grants.baseGrant.
Grant
(original, grantdDict, idValue, bad, error, sFile='', sLine=0) -
getInstitutions
(tags=None, seperator=';', _getTag=False) Returns a list of the names of institutions. This is done by looking (in order) for any of fields in tags and splitting the strings on seperator (in case of multiple institutions). If no strings are found an empty list will be returned.
Note for some Grants
getInstitutions
has been overwritten and will ignore the arguments and simply provide the investigators.Parameters¶
tags :
optional list[str]
A list of the tags to look for institutions inseperator :
optional str
The string that separators each institutions name within the column
-
getInvestigators
(tags=None, seperator=';', _getTag=False) Returns a list of the names of investigators. This is done by looking (in order) for any of fields in tags and splitting the strings on seperator. If no strings are found an empty list will be returned.
Note for some Grants
getInvestigators
has been overwritten and will ignore the arguments and simply provide the investigators.Parameters¶
tags :
optional list[str]
A list of the tags to look for investigators inseperator :
optional str
The string that separators each investigators name within the column
-
update
(other) Adds all the tag-entry pairs from other to the
Grant
. If there is a conflict other takes precedence.
-
-
metaknowledge.grants.baseGrant.
csvAndLinesReader
(enumeratedFile, *csvArgs, **csvKwargs)
-
metaknowledge.grants.baseGrant.
isFallbackGrantFile
(fileName, useFileName=True, encoding='latin-1', dialect='excel')
-
metaknowledge.grants.baseGrant.
parserFallbackGrantFile
(fileName, encoding='latin-1', dialect='excel')
cihrGrant¶
-
class
metaknowledge.grants.cihrGrant.
CIHRGrant
(original, grantdDict, sFile, sLine)
-
metaknowledge.grants.cihrGrant.
isCIHRfile
(fileName, useFileName=True)
-
metaknowledge.grants.cihrGrant.
parserCIHRfile
(fileName)
medlineGrant¶
-
class
metaknowledge.grants.medlineGrant.
MedlineGrant
(grantString)
nsercGrant¶
-
class
metaknowledge.grants.nsercGrant.
NSERCGrant
(original, grantdDict, sFile, sLine) -
getInstitutions
(tags=None, seperator=';', _getTag=False) Returns a list with the names of the institution. The optional arguments are ignored
-
getInvestigators
(tags=None, seperator=';', _getTag=False) Returns a list of the names of investigators. The optional arguments are ignored.
-
update
(other) Adds all the tag-entry pairs from other to the
Grant
. If there is a conflict other takes precedence.
-
-
metaknowledge.grants.nsercGrant.
isNSERCfile
(fileName, useFileName=True)
-
metaknowledge.grants.nsercGrant.
parserNSERCfile
(fileName)
nsfGrant¶
-
class
metaknowledge.grants.nsfGrant.
NSFGrant
(grantdDict, sFile) -
getInstitutions
(tags=None, seperator=';', _getTag=False) Returns a list with the names of the institution. The optional arguments are ignored
-
getInvestigators
(tags=None, seperator=';', _getTag=False) Returns a list of the names of investigators. The optional arguments are ignored.
-
-
metaknowledge.grants.nsfGrant.
isNSFfile
(fileName, useFileName=True)
-
metaknowledge.grants.nsfGrant.
parserNSFfile
(fileName)
scopusGrant¶
-
class
metaknowledge.grants.scopusGrant.
ScopusGrant
(grantString)