agriculture
type: Ontology
identifier: agriculture
version: 0.1.0
description: Shared farm supertypes — the MIF-compliant intermediate layer the agriculture domains extend
has namespace:
  semantic memory: semantic
  episodic memory: episodic
defines entity type: agricultural-holding
defines entity type: land-parcel
defines entity type: soil-unit
defines entity type: cultivar
defines entity type: managed-animal
defines entity type: agricultural-input
defines entity type: agricultural-equipment
defines entity type: harvest-event
defines entity type: climate-event
defines trait:
  cited: cited
  dated: dated
defines relationship:
  sited-in: sited-in
  cultivates: cultivates
  amends: amends
discovery config:
  discovery enabled: false
  confidence threshold: 0.8
  has discovery pattern: https://mif-spec.dev/ns/pattern/0
  has discovery pattern: https://mif-spec.dev/ns/pattern/1
  has discovery pattern: https://mif-spec.dev/ns/pattern/2

semantic
type: Namespace
has child namespace:
  farm: farm

farm
type: Namespace
description: Farm operations, land, and resources
type hint: semantic

episodic
type: Namespace
has child namespace:
  records: records

records
type: Namespace
description: Farm episodic records — harvest and climate events
type hint: episodic

agricultural-holding
type: EntityType
base type: SemanticMemory
description: An agricultural operation or enterprise
defines trait: mif:trait/cited
schema.org:
  required: name
  properties:
    name:
      type: string
    location:
      type: string
    operation type:
      type: string
      description: crop / livestock / mixed
    size:
      type: string

land-parcel
type: EntityType
base type: SemanticMemory
description: A field, parcel, or paddock within a holding
defines trait: mif:trait/cited
schema.org:
  required: name
  properties:
    name:
      type: string
    area:
      type: string
    location:
      type: string

soil-unit
type: EntityType
base type: SemanticMemory
description: A soil profile or soil mapping unit
defines trait: mif:trait/cited
defines trait: mif:trait/dated
schema.org:
  required: name
  properties:
    name:
      type: string
    soil type:
      type: string
    organic matter:
      type: string

cultivar
type: EntityType
base type: SemanticMemory
description: A crop, cultivar, or planting subject
defines trait: mif:trait/cited
schema.org:
  required: name
  properties:
    name:
      type: string
    species:
      type: string
    variety:
      type: string

managed-animal
type: EntityType
base type: SemanticMemory
description: An animal or herd kept on the holding
defines trait: mif:trait/cited
schema.org:
  required: name
  properties:
    name:
      type: string
    species:
      type: string
    count:
      type: integer

agricultural-input
type: EntityType
base type: SemanticMemory
description: An input applied on the holding (seed, feed, fertilizer, amendment)
defines trait: mif:trait/cited
schema.org:
  required: name
  properties:
    name:
      type: string
    input type:
      type: string
      description: seed / feed / fertilizer / amendment / pesticide

agricultural-equipment
type: EntityType
base type: SemanticMemory
description: A machine, implement, or piece of farm equipment
defines trait: mif:trait/cited
schema.org:
  required: name
  properties:
    name:
      type: string
    equipment type:
      type: string

harvest-event
type: EntityType
base type: EpisodicMemory
description: An episodic record of a harvest event and its yield
defines trait: mif:trait/cited
defines trait: mif:trait/dated
schema.org:
  required: cultivar_ref
  properties:
    cultivar ref:
      type: string
      description: The cultivar harvested
    harvest date:
      type: string
      format: date
    yield:
      type: string

climate-event
type: EntityType
base type: EpisodicMemory
description: An episodic climate/weather event affecting the operation
defines trait: mif:trait/cited
defines trait: mif:trait/dated
schema.org:
  required: event_type
  properties:
    event type:
      type: string
      description: drought / frost / flood / storm / heatwave
    event date:
      type: string
      format: date
    impact:
      type: string

cited
type: Trait
description: Requires citations/sources
requires field: citations

dated
type: Trait
description: Adds an event/observation date
has field:
  event date:
    type: string
    format: date

sited-in
type: Relationship
description: A parcel is sited in a holding
domain: mif:entityType/land-parcel
range: mif:entityType/agricultural-holding
symmetric property: false

cultivates
type: Relationship
description: A parcel cultivates a cultivar
domain: mif:entityType/land-parcel
range: mif:entityType/cultivar
symmetric property: false

amends
type: Relationship
description: An input is applied to a parcel or cultivar
domain: mif:entityType/agricultural-input
range: mif:entityType/land-parcel
range: mif:entityType/cultivar
symmetric property: false

https://mif-spec.dev/ns/pattern/0
type: DiscoveryPattern
content pattern: \b(farm|ranch|holding|operation)\b
suggests entity type: agricultural-holding
suggests namespace: _semantic/farm

https://mif-spec.dev/ns/pattern/1
type: DiscoveryPattern
content pattern: \b(field|parcel|paddock|plot)\b
suggests entity type: land-parcel
suggests namespace: _semantic/farm

https://mif-spec.dev/ns/pattern/2
type: DiscoveryPattern
content pattern: \b(crop|cultivar|planting)\b
suggests entity type: cultivar
suggests namespace: _semantic/farm