Skip to content

Fix textapi errors

Michelle Weidling requested to merge fix-textapi-errors into develop

With this MR, the following errors are fixed ( marks possibly breaking changes for TIDO):

  • role holds an array (in collection['collector'][n]['role'] and manifest['actor'][n]['role'])
    • "role": "editor" --> "role": [ "editor" ]
  • idref holds array (in collection['collector'][n]['idref'])
    • "idref": {...} --> "idref": [ {...} ]
  • @context for
    • fonts (in manifests)
    • licenses (in manifests and items)

Examples

collection.json

Then:

{
  "textapi" : "1.3.0",
  "x-app-version" : "11.4.3",
  "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/collection.jsonld",
  "id" : "https://ahikar-dev.sub.uni-goettingen.de/syriac/collection.json",
  "title" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/title.jsonld",
    "title" : "Textual witnesses in Syriac",
    "type" : "main"
  } ],
  "collector" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/actor.jsonld",
    "name" : "Prof. Dr. theol. Kratz, Reinhard Gregor",
    "role" : [ "collector" ],
    "idref" : {
      "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/idref.jsonld",
      "base" : "http://d-nb.info/gnd/",
      "id" : "115412700",
      "type" : "GND"
    }
  }, {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/actor.jsonld",
    "name" : "Birol, Simon",
    "role" : [ "collector" ],
    "idref" : {
      "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/idref.jsonld",
      "base" : "http://d-nb.info/gnd/",
      "id" : "1150408537",
      "type" : "GND"
    }
  } ],
  "annotationCollection" : "https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahiqar/syriac/annotationCollection.json",
  "description" : "Syriac collection for the Ahiqar project. Funded by DFG, 2018–2021, University of Göttingen",
  "sequence" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/sequence.jsonld",
    "id" : "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/manifest.json",
    "label" : "Paris, Bibliothèque Nationale de France, ms. syr. 434",
    "type" : "manifest"
  }]
}

Now:

{
  "textapi" : "1.3.0",
  "x-app-version" : "11.4.3",
  "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/collection.jsonld",
  "id" : "https://ahikar-test.sub.uni-goettingen.de/syriac/collection.json",
  "title" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/title.jsonld",
    "title" : "Textual witnesses in Syriac",
    "type" : "main"
  } ],
  "collector" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/actor.jsonld",
    "name" : "Prof. Dr. theol. Kratz, Reinhard Gregor",
    "role" : [ "collector" ],
    "idref" : [ {
      "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/idref.jsonld",
      "base" : "http://d-nb.info/gnd/",
      "id" : "115412700",
      "type" : "GND"
    } ]
  }, {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/actor.jsonld",
    "name" : "Birol, Simon",
    "role" : [ "collector" ],
    "idref" : [ {
      "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/idref.jsonld",
      "base" : "http://d-nb.info/gnd/",
      "id" : "1150408537",
      "type" : "GND"
    } ]
  } ],
  "annotationCollection" : "https://ahikar-test.sub.uni-goettingen.de/api/annotations/ahiqar/syriac/annotationCollection.json",
  "description" : "Syriac collection for the Ahiqar project. Funded by DFG, 2018–2021, University of Göttingen",
  "sequence" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/sequence.jsonld",
    "id" : "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/manifest.json",
    "label" : "Paris, Bibliothèque Nationale de France, ms. syr. 434",
    "type" : "manifest"
  }]
}

manifest.json

Then:

{
  "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/manifest.jsonld",
  "textapi" : "1.3.0",
  "x-app-version" : "11.4.3",
  "id" : "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/manifest.json",
  "label" : "Paris, Bibliothèque Nationale de France, ms. syr. 434",
  "metadata" : [],
  "support" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/support.jsonld",
    "type" : "css",
    "mime" : "text/css",
    "url" : "https://ahikar-dev.sub.uni-goettingen.de/api/content/ahiqar.css"
  }, {
    "type" : "font",
    "mime" : "font/woff",
    "url" : "https://ahikar-dev.sub.uni-goettingen.de/api/content/syrcomjerusalemitalic.woff"
  } ],
  "license" : [ {
    "id" : "[CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode)"
  } ],
  "annotationCollection" : "https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahiqar/syriac/3r678/annotationCollection.json",
  "sequence" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/sequence.jsonld",
    "id" : "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/186v/latest/item.json",
    "label" : "186v",
    "type" : "item"
  } ],
  "actor" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/actor.jsonld",
    "role" : "editor",
    "name" : "Simon Birol"
  } ]
}

Now:

{
  "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/manifest.jsonld",
  "textapi" : "1.3.0",
  "x-app-version" : "11.4.3",
  "id" : "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/manifest.json",
  "label" : "Paris, Bibliothèque Nationale de France, ms. syr. 434",
  "metadata" : [],
  "support" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/support.jsonld",
    "type" : "css",
    "mime" : "text/css",
    "url" : "https://ahikar-test.sub.uni-goettingen.de/api/content/ahiqar.css"
  }, {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/support.jsonld",
    "type" : "font",
    "mime" : "font/woff",
    "url" : "https://ahikar-dev.sub.uni-goettingen.de/api/content/syrcomjerusalemitalic.woff"
  } ],
  "license" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/license.jsonld",
    "id" : "[CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode)"
  } ],
  "annotationCollection" : "https://ahikar-test.sub.uni-goettingen.de/api/annotations/ahiqar/syriac/3r678/annotationCollection.json",
  "sequence" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/sequence.jsonld",
    "id" : "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/186v/latest/item.json",
    "label" : "186v",
    "type" : "item"
  } ],
  "actor" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/actor.jsonld",
    "role" : [ "editor" ],
    "name" : "Simon Birol"
  } ]
}

item.json

Then:

{
  "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/item.jsonld",
  "textapi" : "1.3.0",
  "x-app-version" : "11.4.3",
  "id" : "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/186v/latest/item.json",
  "title" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/title.jsonld",
    "title" : "From the Proverbs of Ahiqar",
    "type" : "main"
  } ],
  "type" : "page",
  "n" : "186v",
  "content" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/content.jsonld",
    "url" : "https://ahikar-dev.sub.uni-goettingen.de/api/content/transcription/3r676-186v.html",
    "type" : "application/xhtml+xml;type=transcription"
  } ],
  "lang" : [ "syc" ],
  "langAlt" : [ ],
  "x-langString" : "Classical Syriac",
  "image" : {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/image.jsonld",
    "id" : "https://ahikar-dev.sub.uni-goettingen.de/api/images/public/3r85p",
    "license" : {
      "id" : "Public domain",
      "notes" : "Public domain. Link to original material: https://gallica.bnf.fr/ark:/12148/btv1b53110176r/f377.image.r=Syriaque"
    }
  },
  "annotationCollection" : "https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahiqar/syriac/3r678/186v/latest/annotationCollection.json"
}

Now:

{
  "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/item.jsonld",
  "textapi" : "1.3.0",
  "x-app-version" : "11.4.3",
  "id" : "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahiqar/syriac/3r678/186v/latest/item.json",
  "title" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/title.jsonld",
    "title" : "From the Proverbs of Ahiqar",
    "type" : "main"
  } ],
  "type" : "page",
  "n" : "186v",
  "content" : [ {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/content.jsonld",
    "url" : "https://ahikar-test.sub.uni-goettingen.de/api/content/transcription/3r676-186v.html",
    "type" : "application/xhtml+xml;type=transcription"
  } ],
  "lang" : [ "syc" ],
  "langAlt" : [ ],
  "x-langString" : "Classical Syriac",
  "image" : {
    "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/image.jsonld",
    "id" : "https://ahikar-test.sub.uni-goettingen.de/api/images/public/3r85p",
    "license" : {
      "@context" : "https://gitlab.gwdg.de/subugoe/emo/text-api/-/raw/main/jsonld/license.jsonld",
      "id" : "Public domain",
      "notes" : "Public domain. Link to original material: https://gallica.bnf.fr/ark:/12148/btv1b53110176r/f377.image.r=Syriaque"
    }
  },
  "annotationCollection" : "https://ahikar-test.sub.uni-goettingen.de/api/annotations/ahiqar/syriac/3r678/186v/latest/annotationCollection.json"
}
Edited by Michelle Weidling

Merge request reports