digirati-co-uk / iiif-php

IIIF library for PHP
7 stars 2 forks source link

Other content field #13

Open stephenwf opened 7 years ago

stephenwf commented 7 years ago

Canvases can have "otherContent" field that produce annotation lists. This will probably be similar to the W3C annotation list from Elucidate.

example:

{
  "service": {
    "Average_confidence": 83,
    "Entity_stats": {
      "ORG": "2"
    },
    "Full_text_length": 135,
    "Spelling_accuracy": 100,
    "Total_entities_found": 2,
    "Typescript": true,
    "@context": "https:\/\/dlcs-ida.org\/ocr-info"
  },
  "otherContent": [
    {
      "@id": "https:\/\/transcriptions.dlcs-ida.org\/annotations\/line\/?width=2576&canvas=https%3A%2F%2Fpresley.dlcs-ida.org%2Fiiif%2Fidatest01%2F_roll_M-1473_18_cvs-2-11%2Fcanvas%2Fc2&image=https%3A%2F%2Fdlcs-ida.org%2Fiiif-img%2F2%2F1%2FM-1473_R-18_0003&height=3328",
      "@type": "sc:AnnotationList",
      "label": "Transcription annotations"
    },
    {
      "@id": "https:\/\/annotations.dlcs-ida.org\/annotationlist\/ac98c286ef37ffc691709762b53be9d1\/",
      "@type": "sc:AnnotationList",
      "label": "Named Entity Extraction Annotations"
    }
  ]
}