ProvenanceEntryDto

data class ProvenanceEntryDto constructor(val locator: String, val display: String?, val chunkId: String?, val startOffset: Int?, val endOffset: Int?, val contentHash: String?, val sourceRevision: String? = null)

Slim view of where a proposition came from — one source reference per entry.

Constructors

Link copied to clipboard
constructor(locator: String, display: String?, chunkId: String?, startOffset: Int?, endOffset: Int?, contentHash: String?, sourceRevision: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the chunk this proposition was extracted from, when known

Link copied to clipboard

hash of the source content, when known

Link copied to clipboard

optional human-readable label for the source

Link copied to clipboard

character offset where the supporting span ends, when known

Link copied to clipboard

stable key of the source reference (e.g. content:<hash>, uri:..., connector:gmail:<id>); see com.embabel.dice.provenance.SourceLocator.key

Link copied to clipboard
val sourceRevision: String? = null

the provider's opaque revision of this source, when known. Absent from the JSON when null, so a revisionless entry serializes exactly as it always did.

Link copied to clipboard

character offset where the supporting span begins, when known