Documentation ¶
Overview ¶
Package provides definitions for loading and reading open access XML papers from EuroPMC.
Index ¶
- Constants
- func FullTextURL(pmcid string) string
- func SupplementaryFilesURL(pmcid string) string
- type ArticleID
- type ArticleMeta
- type ArticleTitleGroup
- type ContribGroup
- type Contributor
- type ContributorName
- type Front
- type JournalMeta
- type JournalTitleGroup
- type KeywordGroup
- type License
- type OpenXMLPaper
- func (paper OpenXMLPaper) ArticleID(id_type string) *string
- func (paper OpenXMLPaper) FirstAuthor() *ContributorName
- func (paper OpenXMLPaper) JournalTitle() string
- func (paper OpenXMLPaper) Keywords() []string
- func (paper OpenXMLPaper) LicenseURL() string
- func (paper OpenXMLPaper) PMCID() *string
- func (paper OpenXMLPaper) PMID() *string
- func (paper OpenXMLPaper) Title() string
- type Permissions
Constants ¶
View Source
const EUROPMC_API_URL string = "https://www.ebi.ac.uk/europepmc/webservices/rest"
Base URL for EuroPMC REST API
Variables ¶
This section is empty.
Functions ¶
func FullTextURL ¶
func SupplementaryFilesURL ¶
Types ¶
type ArticleMeta ¶
type ArticleMeta struct { XMLName xml.Name `xml:"article-meta"` IDs []ArticleID `xml:"article-id"` TitleGroup ArticleTitleGroup `xml:"title-group"` ContributorGroups []ContribGroup `xml:"contrib-group"` Permissions Permissions `xml:"permissions"` KeywordGroup KeywordGroup `xml:"kwd-group"` }
type ArticleTitleGroup ¶
type ContribGroup ¶
type ContribGroup struct { XMLName xml.Name `xml:"contrib-group"` Contributors []Contributor `xml:"contrib"` }
type Contributor ¶
type Contributor struct {
Name ContributorName `xml:"name"`
}
type ContributorName ¶
type ContributorName struct { Surname string `xml:"surname"` GivenNames string `xml:"given-names"` }
func (*ContributorName) String ¶
func (author *ContributorName) String() string
type Front ¶
type Front struct { XMLName xml.Name `xml:"front"` JournalMeta JournalMeta `xml:"journal-meta"` ArticleMeta ArticleMeta `xml:"article-meta"` }
type JournalMeta ¶
type JournalMeta struct { XMLName xml.Name `xml:"journal-meta"` TitleGroup JournalTitleGroup `xml:"journal-title-group"` }
type JournalTitleGroup ¶
type KeywordGroup ¶
type OpenXMLPaper ¶
func FetchFullText ¶
func FetchFullText(pmcid string) (*OpenXMLPaper, error)
func LoadPaperXMLFromFile ¶
func LoadPaperXMLFromFile(path string) (OpenXMLPaper, error)
func (OpenXMLPaper) ArticleID ¶
func (paper OpenXMLPaper) ArticleID(id_type string) *string
func (OpenXMLPaper) FirstAuthor ¶
func (paper OpenXMLPaper) FirstAuthor() *ContributorName
func (OpenXMLPaper) JournalTitle ¶
func (paper OpenXMLPaper) JournalTitle() string
func (OpenXMLPaper) Keywords ¶
func (paper OpenXMLPaper) Keywords() []string
func (OpenXMLPaper) LicenseURL ¶
func (paper OpenXMLPaper) LicenseURL() string
func (OpenXMLPaper) PMCID ¶
func (paper OpenXMLPaper) PMCID() *string
func (OpenXMLPaper) PMID ¶
func (paper OpenXMLPaper) PMID() *string
func (OpenXMLPaper) Title ¶
func (paper OpenXMLPaper) Title() string
Click to show internal directories.
Click to hide internal directories.