Skip to content

Class: Campaign

A public-facing appeal grouping related DemandSignals under a shared title, timeline, and beneficiary group. Campaign progress is derived from its child signals.

URI: schema:Event

 classDiagram
    class Campaign
    click Campaign href "../Campaign/"
      Campaign : description

      Campaign : ends_at

      Campaign : id

      Campaign : lifecycle_state





        Campaign --> "1" CampaignLifecycleEnum : lifecycle_state
        click CampaignLifecycleEnum href "../CampaignLifecycleEnum/"



      Campaign : org





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



      Campaign : signals





        Campaign --> "*" DemandSignal : signals
        click DemandSignal href "../DemandSignal/"



      Campaign : starts_at

      Campaign : target_beneficiary_group

      Campaign : title

Class Properties

Property Value
Class URI schema:Event

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
title 1
String
Human-readable campaign title, e direct
description 0..1
String
A human-readable description for a thing direct
starts_at 1
Datetime
Campaign start date and time direct
ends_at 1
Datetime
Campaign end date and time direct
target_beneficiary_group 0..1
String
Free-text description of the target beneficiary group, e direct
lifecycle_state 1
CampaignLifecycleEnum
Current lifecycle state of the entity direct
signals *
DemandSignal
Inverse relation — DemandSignals with FK to this Campaign (signal_type = camp... direct

Usages

used by used in type used
DemandSignal campaign range Campaign

Identifier and Mapping Information

Schema Source

  • from schema: https://inkind-at.github.io/inkind-knowledge-repo

Mappings

Mapping Type Mapped Value
self schema:Event
native inkind_knowledge_repo:Campaign

LinkML Source

Direct

name: Campaign
description: A public-facing appeal grouping related DemandSignals under a shared
  title, timeline, and beneficiary group.  Campaign progress is derived from its child
  signals.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
slots:
- id
- org
- title
- description
- starts_at
- ends_at
- target_beneficiary_group
- lifecycle_state
- signals
slot_usage:
  org:
    name: org
    range: SocialOrganisation
    required: true
  lifecycle_state:
    name: lifecycle_state
    range: CampaignLifecycleEnum
    required: true
class_uri: schema:Event

Induced

name: Campaign
description: A public-facing appeal grouping related DemandSignals under a shared
  title, timeline, and beneficiary group.  Campaign progress is derived from its child
  signals.
from_schema: https://inkind-at.github.io/inkind-knowledge-repo
slot_usage:
  org:
    name: org
    range: SocialOrganisation
    required: true
  lifecycle_state:
    name: lifecycle_state
    range: CampaignLifecycleEnum
    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: Campaign
    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: Campaign
    domain_of:
    - Actor
    - StorageLocation
    - DonationCollection
    - DemandSignal
    - Campaign
    - ProvenanceRecord
    range: SocialOrganisation
    required: true
  title:
    name: title
    description: Human-readable campaign title, e.g. "Back to School 2026".
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: title
    owner: Campaign
    domain_of:
    - Campaign
    range: string
    required: true
  description:
    name: description
    description: A human-readable description for a thing.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    slot_uri: schema:description
    alias: description
    owner: Campaign
    domain_of:
    - NamedThing
    - Campaign
    range: string
  starts_at:
    name: starts_at
    description: Campaign start date and time.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    slot_uri: schema:startDate
    alias: starts_at
    owner: Campaign
    domain_of:
    - Campaign
    range: datetime
    required: true
  ends_at:
    name: ends_at
    description: Campaign end date and time.  Propagated as deadline to all child
      DemandSignals.
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    slot_uri: schema:endDate
    alias: ends_at
    owner: Campaign
    domain_of:
    - Campaign
    range: datetime
    required: true
  target_beneficiary_group:
    name: target_beneficiary_group
    description: Free-text description of the target beneficiary group, e.g. "Primary
      school children starting September".
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: target_beneficiary_group
    owner: Campaign
    domain_of:
    - Campaign
    range: string
  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: Campaign
    domain_of:
    - DonationSource
    - DonationCollection
    - DonationItem
    - DemandSignal
    - Campaign
    range: CampaignLifecycleEnum
    required: true
  signals:
    name: signals
    description: Inverse relation — DemandSignals with FK to this Campaign (signal_type
      = campaign).
    from_schema: https://inkind-at.github.io/inkind-knowledge-repo
    rank: 1000
    alias: signals
    owner: Campaign
    domain_of:
    - Campaign
    range: DemandSignal
    multivalued: true
class_uri: schema:Event