WikipediaResult
public struct WikipediaResult
A wrapper containing metadata related to a specific taxon. Generated by the
Taxonomy.retrieveWikipediaAbstract method when a match is found on Wikipedia
servers and an extract could be retrieved from the article.
-
The Wikipedia page ID for the query that was sent.
Declaration
Swift
public let identifier: Int -
The HTTPS URL pointing to the taxon’s Wikipedia page.
Declaration
Swift
public let url: URL -
The HTTPS URL pointing to the taxon’s Wikipedia mobile page.
Declaration
Swift
public let mobileUrl: URL -
The locale used to search Wikipedia.
Declaration
Swift
public let language: WikipediaLanguage -
The retrieved extract from the Wikipedia article.
Declaration
Swift
public var extract: String? -
The retrieved extract from the Wikipedia article.
Declaration
Swift
public var attributedExtract: WikipediaAttributedExtract? -
The title of the Wikipedia article.
Declaration
Swift
public let title: String -
The remote HTTPS URL pointing to the Wikipedia page’s main image if requested and available.
Declaration
Swift
public var pageImageUrl: URL? -
The downloaded Wikipedia page’s main image if requested and available.
Declaration
Swift
public var pageImageData: Data?
View on GitHub
Install in Dash
WikipediaResult Structure Reference