{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "properties": {
    "data": {
      "description": "List of identifiers (or URIs) of the references describing the data.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "date": {
      "description": "The time at which the interaction was sampled",
      "type": "string"
    },
    "description": {
      "description": "A description of the interaction",
      "type": "string"
    },
    "environment": {
      "description": "List of identifiers (or URIs) of the environments associated to the interaction.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "description": "Integer data. Ex: 2673",
      "type": "integer"
    },
    "item_from": {
      "description": "Identifier (or URI) of the item establishing the interaction.",
      "type": "string"
    },
    "item_to": {
      "description": "Identifier (or URI) of the item receiving the interaction.",
      "type": "string"
    },
    "latitude": {
      "description": "Latitude",
      "type": "string"
    },
    "link_type": {
      "description": "The type of interaction",
      "enum": [
        "predation",
        "herbivory",
        "ectoparasitism",
        "endoparasitism",
        "intra-cellular parasitism",
        "parasitoidism",
        "mycoheterotrophy",
        "antixenosis",
        "teletoxy",
        "amensalism",
        "antibiosis",
        "allelopathy",
        "competition",
        "facilitation",
        "refuge creation",
        "inquilinism",
        "phoresis",
        "epibiosis",
        "pollination",
        "mutualistic symbiosis",
        "zoochory",
        "mutual protection"
      ],
      "type": "string"
    },
    "longitude": {
      "description": "Longitude",
      "type": "string"
    },
    "obs_type": {
      "description": "How the interaction was observed",
      "enum": [
        "unspecified",
        "observation",
        "litterature",
        "absence",
        "inferred"
      ],
      "type": "string"
    },
    "owner": {
      "description": "Who uploaded the data. URI of the data owner.",
      "type": "string"
    },
    "papers": {
      "description": "List of identifiers (or URIs) of the references to the papers associated with the dataset.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "public": {
      "description": "Whether the interaction can be viewed by all users",
      "type": "boolean"
    },
    "resource_uri": {
      "description": "Unicode string data. Ex: \"Hello World\"",
      "type": "string"
    },
    "sex_from": {
      "description": "The sex of the establishing, to be selected in the list of allowed values",
      "enum": [
        "all",
        "male",
        "female",
        "unknown"
      ],
      "type": "string"
    },
    "sex_to": {
      "description": "The sex of the receiving entity, to be selected in the list of allowed values",
      "enum": [
        "all",
        "male",
        "female",
        "unknown"
      ],
      "type": "string"
    },
    "stage_from": {
      "description": "The stage of the establishing entity, to be selected in the list of allowed values",
      "enum": [
        "seed",
        "juvenile",
        "adult",
        "dead",
        "larva",
        "all"
      ],
      "type": "string"
    },
    "stage_to": {
      "description": "The stage of the receiving entity, to be selected in the list of allowed values",
      "enum": [
        "seed",
        "juvenile",
        "adult",
        "dead",
        "larva",
        "all"
      ],
      "type": "string"
    },
    "strength_f": {
      "description": "The strength of the interaction for the item ESTABLISHING the interaction",
      "type": "number"
    },
    "strength_t": {
      "description": "The strength of the interaction for the item RECEVING the interaction",
      "type": "number"
    },
    "taxa_from": {
      "description": "Identifier (or URI) of the taxa establishing the interaction.",
      "type": "string"
    },
    "taxa_to": {
      "description": "Identifier (or URI) of the taxa receiving the interaction.",
      "type": "string"
    },
    "units_f": {
      "description": "Units in which the interaction strength is measured",
      "type": "string"
    },
    "units_t": {
      "description": "Units in which the interaction strength is measured",
      "type": "string"
    }
  },
  "required": [
    "public",
    "link_type",
    "stage_from",
    "sex_to",
    "taxa_to",
    "stage_to",
    "obs_type",
    "taxa_from",
    "sex_from"
  ],
  "title": "Schema for interaction objects",
  "type": "object"
}