ArxivEntry
public struct ArxivEntry : Hashable, Codable
extension ArxivEntry: CustomStringConvertible
A single parsed entry
element from arXiv API reponse.
-
A single parsed
See moreauthor
element from arXiv API reponse.Declaration
Swift
public struct Author : Hashable, Codable
-
Returns arXiv identifier of the article.
For detailed explanation of arXiv identifiers see arXiv.org help.
Declaration
Swift
public internal(set) var id: String { get }
-
Returnes article’s title.
Declaration
Swift
public internal(set) var title: String { get }
-
Returnes the date in which the first version of the article was submitted and processed.
Declaration
Swift
public internal(set) var submissionDate: Date { get }
-
Returned the date on which the current version of the article was submitted and processed.
Declaration
Swift
public internal(set) var lastUpdateDate: Date { get }
-
Returnes article’s abstract.
Declaration
Swift
public internal(set) var summary: String { get }
-
Returnes an array of article’s authors.
Declaration
Swift
public internal(set) var authors: [Author] { get }
-
Returns an array of all arXiv, ACM, or MSC category symbols describing article’s classification.
For detailed explanation of article categorisation see arXiv.org help.
If an element from the returned list is arXiv category symbol, it can be used as the argument for
ArxivSubject.init?(symbol:)
. Constructed value can then be used for retrieving articles belonging to the subject.Declaration
Swift
public internal(set) var categories: [String] { get }
-
Returns a symbol of article’s primary category.
For detailed explanation of article categorisation see arXiv.org help.
If the returned value is arXiv category symbol, it can be used as the argument for
ArxivSubject.init?(symbol:)
. Constructed value can then be used for retrieving articles belonging to the subject.Declaration
Swift
public internal(set) var primaryCategory: String { get }
-
Returns URL to article’s abstract page.
Declaration
Swift
public internal(set) var abstractURL: URL { get }
-
Returns URL to article’s full text PDF file.
Declaration
Swift
public internal(set) var pdfURL: URL { get }
-
Returns URL to article’s resolved DOI page if available, or
nil
otherwise.Declaration
Swift
public internal(set) var doiURL: URL? { get }
-
Returns authors’ comment of the article.
Declaration
Swift
public internal(set) var comment: String { get }
-
Returnes a journal reference for the article
Declaration
Swift
public internal(set) var journalReference: String { get }
-
Returnes a DOI for the article if one is provided or empty string otherwise.
Declaration
Swift
public internal(set) var doi: String { get }
-
Declaration
Swift
public var description: String { get }
-
Returns an example of parsed arXiv API response
entry
element.Declaration
Swift
static var example: ArxivEntry { get }
-
Returns version number of the article or
nil
if theid
is without verrsion suffix.Declaration
Swift
var version: Int? { get }
-
Returns
id
without version suffix.Returned value can be used for fetching the latest version of the article.
Declaration
Swift
var latestVersionID: String { get }
-
Returns an array of IDs for all available versions of the article in ascending order.
Declaration
Swift
var allVersionsIDs: [String] { get }