Skip to main content

Module resource

Module resource 

Source
Expand description

Domain model for resource instances — ResourceSummary, ResourcePage, ResourceDetail, ResourceVisibility, ResourceAccess, FieldValues, Value, ValueContent, DateValue, DatePoint, and FileValue.

These types cross the client/action boundary: ResourcePage is the raw per-page result returned by [DspClient::list_resources]; ResourceSummary is the per-row projection that flows through the action into the renderer. ResourceDetail carries the full envelope metadata returned by [DspClient::describe_resource]. FieldValues and ValueContent carry the parsed field values (instance side), emitted when --values is set.

Structs§

DatePoint
One endpoint of a date range, with optional precision.
DateValue
Calendar-aware date value, optionally a range.
FieldValues
One field on a resource and the value(s) it holds (instance side).
FileValue
File-representation value, covering all representation kinds.
ResourceDetail
Full envelope metadata for a single resource instance.
ResourcePage
A single page of resource-list results from the DSP-API.
ResourceSummary
A single resource instance, as returned by the list endpoint.
Value
One value on a field, plus its optional per-value comment (knora-api:valueHasComment). The comment is free-text server-supplied annotation; None when the value has no comment (the common case).

Enums§

ResourceAccess
What the requesting caller can do with a resource.
ResourceVisibility
Who can see a resource — derived from the resource’s full access-control list.
ValueContent
The typed content of a single value (instance side).