Skip to content

Class: DonationCollection

A general-purpose grouping of items with optional recursive parent-child structure. Replaces the flat DonationBatch model.

URI: inkind_knowledge_repo:DonationCollection

 classDiagram
    class DonationCollection
    click DonationCollection href "../DonationCollection/"
      DonationCollection : collection_type





        DonationCollection --> "1" CollectionTypeEnum : collection_type
        click CollectionTypeEnum href "../CollectionTypeEnum/"



      DonationCollection : created_at

      DonationCollection : created_by





        DonationCollection --> "1" Actor : created_by
        click Actor href "../Actor/"



      DonationCollection : donation_source





        DonationCollection --> "0..1" DonationSource : donation_source
        click DonationSource href "../DonationSource/"



      DonationCollection : id

      DonationCollection : item_count

      DonationCollection : label

      DonationCollection : lifecycle_state





        DonationCollection --> "1" CollectionLifecycleEnum : lifecycle_state
        click CollectionLifecycleEnum href "../CollectionLifecycleEnum/"



      DonationCollection : notes

      DonationCollection : org





        DonationCollection --> "1" SocialOrganisation : org
        click SocialOrganisation href "../SocialOrganisation/"



      DonationCollection : parent





        DonationCollection --> "0..1" DonationCollection : parent
        click DonationCollection href "../DonationCollection/"



      DonationCollection : total_item_count

Slots

Name Cardinality and Range Description Inheritance
id 1
Uriorcurie
A unique identifier for the entity direct
org 1
SocialOrganisation
Reference to the owning SocialOrganisation direct
collection_type 1
CollectionTypeEnum
Operational type of this collection direct
label 1
String
Human-readable label for the entity direct
parent 0..1
DonationCollection
FK — null for arrival collections (root); set for all derived child collectio... direct
donation_source 0..1
DonationSource
Reference to the DonationSource — privacy boundary between item records and d... direct
lifecycle_state 1
CollectionLifecycleEnum
Current lifecycle state of the entity direct
item_count 1
Integer
Count of items directly registered to this collection direct
total_item_count 1
Integer
Derived count — items in this collection plus all descendant collections (com... direct
created_at 1
Datetime
Timestamp when the entity was created direct
created_by 1
Actor
FK — the Actor who created this collection direct
notes 0..1
String
Optional free-text notes direct

Usages

used by used in type used
DonationCollection parent range DonationCollection
DonationItem source_collection range DonationCollection
ClothingItem source_collection range DonationCollection
AccessoriesItem source_collection range DonationCollection
FootwearItem source_collection range DonationCollection
FurnitureItem source_collection range DonationCollection
BeddingTextilesItem source_collection range DonationCollection
HouseholdItem source_collection range DonationCollection
ElectronicsItem source_collection range DonationCollection
ToysItem source_collection range DonationCollection
SportsItem source_collection range DonationCollection
BooksItem source_collection range DonationCollection
StationeryItem source_collection range DonationCollection
PersonalCareItem source_collection range DonationCollection
MobilityAidsItem source_collection range DonationCollection
BabyInfantItem source_collection range DonationCollection
FoodItem source_collection range DonationCollection
OtherItem source_collection range DonationCollection

See Also

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:DonationCollection
native inkind_knowledge_repo:DonationCollection

LinkML Source

Direct

name: DonationCollection
description: A general-purpose grouping of items with optional recursive parent-child
  structure.  Replaces the flat DonationBatch model.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
see_also:
- ceon:Resource
slots:
- id
- org
- collection_type
- label
- parent
- donation_source
- lifecycle_state
- item_count
- total_item_count
- created_at
- created_by
- notes
slot_usage:
  org:
    name: org
    range: SocialOrganisation
    required: true
  lifecycle_state:
    name: lifecycle_state
    range: CollectionLifecycleEnum
    required: true
  donation_source:
    name: donation_source
    range: DonationSource
    required: false
  parent:
    name: parent
    description: FK — null for arrival collections (root); set for all derived child
      collections.
    range: DonationCollection
    required: false

Induced

name: DonationCollection
description: A general-purpose grouping of items with optional recursive parent-child
  structure.  Replaces the flat DonationBatch model.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
see_also:
- ceon:Resource
slot_usage:
  org:
    name: org
    range: SocialOrganisation
    required: true
  lifecycle_state:
    name: lifecycle_state
    range: CollectionLifecycleEnum
    required: true
  donation_source:
    name: donation_source
    range: DonationSource
    required: false
  parent:
    name: parent
    description: FK — null for arrival collections (root); set for all derived child
      collections.
    range: DonationCollection
    required: false
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: DonationCollection
    domain_of:
    - NamedThing
    - SocialOrganisation
    - Actor
    - StorageLocation
    - DonationSource
    - DonationCollection
    - DonationItem
    - DemandSignal
    - Campaign
    - ProvenanceRecord
    range: uriorcurie
    required: true
  org:
    name: org
    description: Reference to the owning SocialOrganisation. Concrete range applied
      via slot_usage in each class.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: org
    owner: DonationCollection
    domain_of:
    - Actor
    - StorageLocation
    - DonationCollection
    - DemandSignal
    - Campaign
    - ProvenanceRecord
    range: SocialOrganisation
    required: true
  collection_type:
    name: collection_type
    description: 'Operational type of this collection.  Phase 1: `arrival` only. Phase
      2+: working, sorted, stock, campaign, disposed.'
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: collection_type
    owner: DonationCollection
    domain_of:
    - DonationCollection
    range: CollectionTypeEnum
    required: true
  label:
    name: label
    description: Human-readable label for the entity.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: label
    owner: DonationCollection
    domain_of:
    - StorageLocation
    - DonationCollection
    range: string
    required: true
  parent:
    name: parent
    description: FK — null for arrival collections (root); set for all derived child
      collections.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: parent
    owner: DonationCollection
    domain_of:
    - SocialOrganisation
    - StorageLocation
    - DonationCollection
    range: DonationCollection
    required: false
  donation_source:
    name: donation_source
    description: Reference to the DonationSource — privacy boundary between item records
      and donor identity. Concrete range applied via slot_usage.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    slot_uri: inkind_knowledge_repo:donation_source
    alias: donation_source
    owner: DonationCollection
    domain_of:
    - DonationCollection
    - DonationItem
    range: DonationSource
    required: false
  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: DonationCollection
    domain_of:
    - DonationSource
    - DonationCollection
    - DonationItem
    - DemandSignal
    - Campaign
    range: CollectionLifecycleEnum
    required: true
  item_count:
    name: item_count
    description: Count of items directly registered to this collection.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: item_count
    owner: DonationCollection
    domain_of:
    - DonationCollection
    range: integer
    required: true
  total_item_count:
    name: total_item_count
    description: Derived count — items in this collection plus all descendant collections
      (computed by the engine).
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: total_item_count
    owner: DonationCollection
    domain_of:
    - DonationCollection
    range: integer
    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: DonationCollection
    domain_of:
    - DonationSource
    - DonationCollection
    - DonationItem
    range: datetime
    required: true
  created_by:
    name: created_by
    description: FK — the Actor who created this collection.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: created_by
    owner: DonationCollection
    domain_of:
    - DonationCollection
    range: Actor
    required: true
  notes:
    name: notes
    annotations:
      label_en:
        tag: label_en
        value: Notes
      label_de:
        tag: label_de
        value: Notizen
    description: Optional free-text notes.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: notes
    owner: DonationCollection
    domain_of:
    - DonationCollection
    range: string