{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://neglected.talksofrecord.com/data/schema.json",
 "title": "Atlas entry",
 "type": "object",
 "required": [
  "id",
  "slug",
  "title",
  "summary",
  "question",
  "disciplines",
  "mechanisms",
  "why_it_matters",
  "what_we_know",
  "what_we_dont_know",
  "why_neglected",
  "thinkers",
  "readings",
  "research_opportunities",
  "counterarguments",
  "assessments",
  "confidence",
  "status",
  "added",
  "updated"
 ],
 "properties": {
  "id": {
   "type": "string",
   "pattern": "^ANK-[0-9]{4,}$"
  },
  "slug": {
   "type": "string"
  },
  "status": {
   "const": "published"
  },
  "title": {
   "type": "string"
  },
  "summary": {
   "type": "string"
  },
  "question": {
   "type": "string"
  },
  "disciplines": {
   "type": "array",
   "items": {
    "enum": [
     "philosophy",
     "psychology",
     "medicine",
     "engineering",
     "sociology",
     "economics",
     "anthropology",
     "history",
     "education",
     "biology",
     "everyday-life",
     "metascience"
    ]
   },
   "minItems": 1
  },
  "mechanisms": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "why_it_matters": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "what_we_know": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "text",
     "sources"
    ],
    "properties": {
     "text": {
      "type": "string"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "what_we_dont_know": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "why_neglected": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "mechanism",
     "text",
     "kind"
    ],
    "properties": {
     "mechanism": {
      "type": "string"
     },
     "text": {
      "type": "string"
     },
     "kind": {
      "enum": [
       "documented",
       "judgment"
      ]
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "thinkers": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     },
     "role": {
      "type": "string"
     },
     "contribution": {
      "type": "string"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "readings": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "title"
    ],
    "properties": {
     "id": {
      "type": "string",
      "pattern": "^S[0-9]+$"
     },
     "type": {
      "type": "string"
     },
     "authors": {
      "type": "string"
     },
     "year": {
      "type": [
       "integer",
       "null"
      ]
     },
     "title": {
      "type": "string"
     },
     "venue": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "doi": {
      "type": "string"
     },
     "note": {
      "type": "string"
     }
    }
   }
  },
  "research_opportunities": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "question": {
      "type": "string"
     },
     "approach": {
      "type": "string"
     }
    }
   }
  },
  "counterarguments": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "text": {
      "type": "string"
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "alt_terms": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "assessments": {
   "type": "object",
   "required": [
    "importance",
    "neglect",
    "discovery",
    "tractability",
    "interdisciplinary",
    "evidence"
   ],
   "properties": {
    "importance": {
     "type": "object",
     "required": [
      "level",
      "reason"
     ],
     "properties": {
      "level": {
       "enum": [
        "high",
        "medium",
        "low"
       ]
      },
      "reason": {
       "type": "string"
      }
     }
    },
    "neglect": {
     "type": "object",
     "required": [
      "level",
      "reason"
     ],
     "properties": {
      "level": {
       "enum": [
        "high",
        "medium",
        "low"
       ]
      },
      "reason": {
       "type": "string"
      }
     }
    },
    "discovery": {
     "type": "object",
     "required": [
      "level",
      "reason"
     ],
     "properties": {
      "level": {
       "enum": [
        "high",
        "medium",
        "low"
       ]
      },
      "reason": {
       "type": "string"
      }
     }
    },
    "tractability": {
     "type": "object",
     "required": [
      "level",
      "reason"
     ],
     "properties": {
      "level": {
       "enum": [
        "high",
        "medium",
        "low"
       ]
      },
      "reason": {
       "type": "string"
      }
     }
    },
    "interdisciplinary": {
     "type": "object",
     "required": [
      "level",
      "reason"
     ],
     "properties": {
      "level": {
       "enum": [
        "high",
        "medium",
        "low"
       ]
      },
      "reason": {
       "type": "string"
      }
     }
    },
    "evidence": {
     "type": "object",
     "required": [
      "level",
      "reason"
     ],
     "properties": {
      "level": {
       "enum": [
        "high",
        "medium",
        "low"
       ]
      },
      "reason": {
       "type": "string"
      }
     }
    }
   }
  },
  "confidence": {
   "type": "object",
   "required": [
    "level",
    "reason"
   ],
   "properties": {
    "level": {
     "enum": [
      "strong",
      "moderate",
      "tentative"
     ]
    },
    "reason": {
     "type": "string"
    }
   }
  },
  "related": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "talks": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "site": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "note": {
      "type": "string"
     }
    }
   }
  },
  "sources_checked": {
   "type": "object",
   "additionalProperties": {
    "type": "object",
    "properties": {
     "status": {
      "type": "string"
     },
     "via": {
      "type": "string"
     }
    }
   }
  },
  "attention": {
   "type": "object",
   "properties": {
    "query": {
     "type": "string"
    },
    "count": {
     "type": [
      "integer",
      "null"
     ]
    },
    "ref_query": {
     "type": "string"
    },
    "ref_count": {
     "type": [
      "integer",
      "null"
     ]
    }
   }
  },
  "added": {
   "type": "string",
   "format": "date"
  },
  "updated": {
   "type": "string",
   "format": "date"
  }
 }
}