{
  "identifier": "http://rs.tdwg.org/dwc-dp/1.0/organism-interaction",
  "dcterms:isPartOf": "http://www.tdwg.org/standards/450",
  "url": "table-schemas/organism-interaction.json",
  "name": "organism-interaction",
  "title": "Organism Interaction",
  "description": "An interaction between two dwc:Organisms during a dwc:Event.",
  "notes": "Supports only primary observed interactions, not habitual or derived taxon-level interactions. Pairwise interactions must be used to represent multi-organism interactions. When possible, typify the action rather than the state from which an action is inferred, with the actor as the subject dwc:Occurrence and the acted-upon as the related dwc:Occurrence. Only one direction of a two-way interaction is necessary, though both are permissible as distinct OrganismInteractions with distinct subject dwc:Occurrences.",
  "examples": "`a bee visiting a flower`; `a Mallophora ruficauda hunting an Apis mellifera in flight`; `a viral infection in a plant`; `a female spider mating with a male spider`; `a lion cub nursing from its mother`; `a mosquito sucking blood from a chimpanzee's arm`; `a slug eating a fungus growing on decomposing stump (2 interactions)`",
  "namespace": "dwc",
  "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/OrganismInteraction",
  "fields": [
    {
      "name": "organismInteraction_pk",
      "title": "Organism Interaction (Primary Key)",
      "description": "A unique identifier for a dwc:OrganismInteraction.",
      "notes": "The value in this field MAY be changed in aggregation to guarantee uniqueness.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/organismInteractionID",
      "constraints": {
        "required": true,
        "unique": true
      }
    },
    {
      "name": "organismInteractionID",
      "title": "Organism Interaction ID",
      "description": "An identifier for a dwc:OrganismInteraction.",
      "notes": "The value in this field MUST be preserved in aggregation. Recommended best practice is to use a globally unique identifier.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/organismInteractionID"
    },
    {
      "name": "event_fk",
      "title": "Event (Foreign Key)",
      "description": "An identifier for a dwc:Event.",
      "notes": "The value in this field MAY be changed in aggregation to preserve the relationship to the related primary key.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/eventID",
      "constraints": {
        "required": true,
        "unique": false
      }
    },
    {
      "name": "organismInteractionDescription",
      "title": "Organism Interaction Description",
      "description": "A verbatim description of a dwc:OrganismInteraction.",
      "notes": "",
      "examples": "`Mallophora ruficauda capturing an Apis mellifera worker in flight.`",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/organismInteractionDescription"
    },
    {
      "name": "subjectOccurrence_fk",
      "title": "Subject Occurrence (Foreign Key)",
      "description": "An identifier for a subject dwc:Occurrence in a dwc:OrganismInteraction.",
      "notes": "The value in this field MAY be changed in aggregation to preserve the relationship to the related primary key.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/occurrenceID",
      "constraints": {
        "required": true,
        "unique": false
      }
    },
    {
      "name": "subjectOrganismPart",
      "title": "Subject Organism Part",
      "description": "An anatomical part of a subject dwc:Organism involved in a dwc:OrganismInteraction.",
      "notes": "Recommended best practice is to use a controlled vocabulary.",
      "examples": "`leaf`; `stomach`; `stamen`; `leg`",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/organismPart"
    },
    {
      "name": "organismInteractionType",
      "title": "Organism Interaction Type",
      "description": "A category that best matches the nature of a dwc:OrganismInteraction.",
      "notes": "Recommended best practice is to use a controlled vocabulary.",
      "examples": "`visited flower of`; `pollinated by`; `parasitoid of`; `mated with`; `was attached to`",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/organismInteractionType"
    },
    {
      "name": "relatedOccurrence_fk",
      "title": "Related Occurrence (Foreign Key)",
      "description": "An identifier for a related dwc:Occurrence in a dwc:OrganismInteraction.",
      "notes": "The value in this field MAY be changed in aggregation to preserve the relationship to the related primary key.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/occurrenceID",
      "constraints": {
        "required": false,
        "unique": false
      }
    },
    {
      "name": "relatedOccurrenceID",
      "title": "Related Occurrence ID",
      "description": "An identifier for a related dwc:Occurrence in a dwc:OrganismInteraction.",
      "notes": "The value in this field MAY refer to a dwc:Occurrence within or external to the dataset in which this record originated.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/occurrenceID",
      "constraints": {
        "required": false,
        "unique": false
      }
    },
    {
      "name": "externalRelatedOccurrenceID",
      "title": "External Related Occurrence ID",
      "description": "An identifier for a related dwc:Occurrence (the object) of a dwc:ResourceRelationship that is not within the same dataset.",
      "notes": "Recommended best practice is to use a globally unique identifier.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/occurrenceID"
    },
    {
      "name": "externalRelatedOccurrenceSource",
      "title": "External Related Occurrence Source",
      "description": "A reference to a source outside the dataset where the related dwc:Occurrence record can be found.",
      "notes": "",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dc",
      "dcterms:isVersionOf": "http://purl.org/dc/elements/1.1/source"
    },
    {
      "name": "relatedOrganismPart",
      "title": "Related Organism Part",
      "description": "An anatomical part of a object dwc:Organism involved in a dwc:OrganismInteraction.",
      "notes": "Recommended best practice is to use a controlled vocabulary.",
      "examples": "`leaf`; `stomach`; `stamen`; `leg`",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/organismPart"
    },
    {
      "name": "feedbackURL",
      "title": "Feedback URL",
      "description": "A uniform resource locator (URL) that points to a webpage on which a form may be submitted to gather feedback about the record.",
      "notes": "Recommended best practice is to optionally include query strings that act to pre-populate web page form elements and communicate the context.",
      "examples": "`https://example.com/new?title=New+issue&body=This+comment+is+about+CAN12345`",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/feedbackURL"
    }
  ],
  "primaryKey": "organismInteraction_pk",
  "weakPrimaryKey": "organismInteractionID",
  "foreignKeys": [
    {
      "fields": "event_fk",
      "predicate": "has context",
      "reference": {
        "resource": "event",
        "fields": "event_pk"
      }
    },
    {
      "fields": "subjectOccurrence_fk",
      "predicate": "by",
      "reference": {
        "resource": "occurrence",
        "fields": "occurrence_pk"
      }
    },
    {
      "fields": "relatedOccurrence_fk",
      "predicate": "with",
      "reference": {
        "resource": "occurrence",
        "fields": "occurrence_pk"
      }
    }
  ],
  "weakForeignKeys": [
    {
      "fields": "relatedOccurrenceID",
      "predicate": "with",
      "reference": {
        "resource": "occurrence",
        "fields": "occurrenceID"
      }
    }
  ]
}
