Class: DonationSource
Supply-side abstraction representing the origin of a donation. Phase 1 uses anonymous_private type only.
URI: inkind_knowledge_repo:DonationSource
classDiagram
class DonationSource
click DonationSource href "../DonationSource/"
DonationSource : anonymous_donor_id
DonationSource : corporate_donor_ref
DonationSource : created_at
DonationSource : id
DonationSource : lifecycle_state
DonationSource --> "1" DonationSourceLifecycleEnum : lifecycle_state
click DonationSourceLifecycleEnum href "../DonationSourceLifecycleEnum/"
DonationSource : organisation_ref
DonationSource --> "0..1" SocialOrganisation : organisation_ref
click SocialOrganisation href "../SocialOrganisation/"
DonationSource : provenance
DonationSource --> "0..1" ProvenanceRecord : provenance
click ProvenanceRecord href "../ProvenanceRecord/"
DonationSource : source_type
DonationSource --> "1" DonationSourceTypeEnum : source_type
click DonationSourceTypeEnum href "../DonationSourceTypeEnum/"
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| id | 1 Uriorcurie |
A unique identifier for the entity | direct |
| source_type | 1 DonationSourceTypeEnum |
Discriminator — anonymous_private is the only type used in Phase 1 |
direct |
| anonymous_donor_id | 0..1 Uriorcurie |
Opaque UUID token linking items back to an anonymous donor for impact reporti... | direct |
| corporate_donor_ref | 0..1 String |
FK reference to CorporateDonor profile — Year 2 feature, nullable in Phase 1 | direct |
| organisation_ref | 0..1 SocialOrganisation |
FK to a SocialOrganisation — set for the Share disposal workflow (Phase 2+) | direct |
| lifecycle_state | 1 DonationSourceLifecycleEnum |
Current lifecycle state of the entity | direct |
| created_at | 1 Datetime |
Timestamp when the entity was created | direct |
| provenance | 0..1 ProvenanceRecord |
Who recorded this source, on which device, and when | direct |
Usages
Identifier and Mapping Information
Schema Source
- from schema: https://inkind-at.github.io/inkind-knowledge-repo
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | inkind_knowledge_repo:DonationSource |
| native | inkind_knowledge_repo:DonationSource |
LinkML Source
Direct
name: DonationSource
description: Supply-side abstraction representing the origin of a donation. Phase
1 uses `anonymous_private` type only.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
slots:
- id
- source_type
- anonymous_donor_id
- corporate_donor_ref
- organisation_ref
- lifecycle_state
- created_at
- provenance
slot_usage:
lifecycle_state:
name: lifecycle_state
range: DonationSourceLifecycleEnum
required: true
Induced
name: DonationSource
description: Supply-side abstraction representing the origin of a donation. Phase
1 uses `anonymous_private` type only.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
slot_usage:
lifecycle_state:
name: lifecycle_state
range: DonationSourceLifecycleEnum
required: true
attributes:
id:
name: id
description: A unique identifier for the entity.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
slot_uri: schema:identifier
identifier: true
alias: id
owner: DonationSource
domain_of:
- NamedThing
- SocialOrganisation
- Actor
- StorageLocation
- DonationSource
- DonationCollection
- DonationItem
- DemandSignal
- Campaign
- ProvenanceRecord
range: uriorcurie
required: true
source_type:
name: source_type
description: Discriminator — `anonymous_private` is the only type used in Phase
1.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
alias: source_type
owner: DonationSource
domain_of:
- DonationSource
range: DonationSourceTypeEnum
required: true
anonymous_donor_id:
name: anonymous_donor_id
description: Opaque UUID token linking items back to an anonymous donor for impact
reporting. Populated only for `anonymous_private` source type.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
see_also:
- schema:identifier
rank: 1000
alias: anonymous_donor_id
owner: DonationSource
domain_of:
- DonationSource
range: uriorcurie
corporate_donor_ref:
name: corporate_donor_ref
description: FK reference to CorporateDonor profile — Year 2 feature, nullable
in Phase 1.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
alias: corporate_donor_ref
owner: DonationSource
domain_of:
- DonationSource
range: string
organisation_ref:
name: organisation_ref
description: FK to a SocialOrganisation — set for the Share disposal workflow
(Phase 2+).
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
alias: organisation_ref
owner: DonationSource
domain_of:
- DonationSource
range: SocialOrganisation
lifecycle_state:
name: lifecycle_state
description: Current lifecycle state of the entity. Concrete enum range applied
via slot_usage. Transitions enforced by Django model clean().
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
alias: lifecycle_state
owner: DonationSource
domain_of:
- DonationSource
- DonationCollection
- DonationItem
- DemandSignal
- Campaign
range: DonationSourceLifecycleEnum
required: true
created_at:
name: created_at
description: Timestamp when the entity was created.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
alias: created_at
owner: DonationSource
domain_of:
- DonationSource
- DonationCollection
- DonationItem
range: datetime
required: true
provenance:
name: provenance
description: Who recorded this source, on which device, and when.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
rank: 1000
alias: provenance
owner: DonationSource
domain_of:
- DonationSource
range: ProvenanceRecord