{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/agri/HoldingFacilityLink.schema.json",
  "title": "HoldingFacilityLink",
  "description": "A dated statement that a farm uses an agricultural facility, such as a barn, store or livestock premises, for its production. Several farms may use the same facility, and one farm may use several. The link does not by itself assert ownership or operation of the facility; those are asset party roles.",
  "type": "object",
  "properties": {
    "linked_holding": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/agri/Farm.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The farm that uses the linked parcel or facility."
    },
    "linked_facility": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/agri/AgriculturalFacility.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The agricultural facility used by the farm during the relationship period."
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which this became effective."
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "description": "The last day on which this is effective. A period includes both its start date and its end date, so a period that applies only on 30 June 2026 has start date 2026-06-30 and end date 2026-06-30."
    },
    "evidence_assertions": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/EvidenceAssertion.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Statements identifying sources that support or contradict this statement."
      }
    }
  }
}
