CitationSource

@Serializable
data class CitationSource(val startIndex: Int, val endIndex: Int, val uri: String, val license: String)

Represents a source of citation, detailing the location within the text and providing reference information such as a URI and license.

Constructors

Link copied to clipboard
constructor(startIndex: Int, endIndex: Int, uri: String, license: String)

Properties

Link copied to clipboard
val endIndex: Int

The ending index in the text where the citation ends. This is an integer value indicating the position of the last character of the cited content. Together with startIndex, it defines the exact span of the cited section in the text.

Link copied to clipboard
val license: String

A string specifying the license under which the cited content is made available. This provides information on how the content can be used or reproduced.

Link copied to clipboard
val startIndex: Int

The starting index in the text where the citation begins. This is an integer value indicating the position of the first character of the cited content.

Link copied to clipboard
val uri: String

A string containing the Uniform Resource Identifier (URI) where more information about the cited content can be found. This could be a link to a webpage, digital document, or any online resource.