Skip to content
Snippets Groups Projects

Create new aramaic on website

Merged Michelle Weidling requested to merge create-new-aramaic-on-website into develop

This MR makes the Neo-Aramaric texts available via the back end.

To test locally:

  • check out branch and build Docker image with all necessary envs
  • import textgrid:40xnp (the neo-aramaic collection)
  • view at /textapi/ahiqar/neo-aramaic/collection.json
Edited by Mathias Goebel

Merge request reports

Checking pipeline status.

Merged by Michelle WeidlingMichelle Weidling 3 months ago (Nov 28, 2024 11:03am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Michelle Weidling resolved all threads

    resolved all threads

  • added 1 commit

    • 564c05c3 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Mathias Goebel changed the description

    changed the description

  • Michelle Weidling resolved all threads

    resolved all threads

  • added 1 commit

    • ce2e4c5b - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

    • Resolved by Mathias Goebel

      import throws following errors

      (Line: 50 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) --- Create annotations for page 560b
      (Line: 50 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) --- Create annotations for page 561b
      (Line: 101 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Annotations couldn't be created for 4107f: 561b
      (Line: 102 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Caught error java:org.exist.xquery.XPathException: exerr:ERROR XPTY0004: The actual cardinality for parameter $note/child::tei:note/descendant::text() does not match the cardinality declared in the function's signature: zero or one. Expected cardinality: $note/child::tei:note/descendant::text(), got zero or one. [at line 226, column 29, source: /db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
      In function:
              edit:make-paraphrase-text(element(tei:cit)) [171:56:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:get-body-value(node()) [84:18:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:get-body-object(node()) [65:21:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:make-map(element(), xs:string) [49:21:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:get-annotations(element(tei:TEI)+, xs:string) [54:13:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              local:get-annotations(xs:string, element(), xs:string, xs:boolean) [98:21:/db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm]. XPTY0004: The actual cardinality for parameter $note/child::tei:note/descendant::text() does not match the cardinality declared in the function's signature: zero or one. Expected cardinality: $note/child::tei:note/descendant::text(), got zero or one. in /db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm at line 226
      (Line: 50 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) --- Create annotations for page 552b
      (Line: 101 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Annotations couldn't be created for 4107f: 552b
      (Line: 102 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Caught error java:org.exist.xquery.XPathException: exerr:ERROR XPTY0004: The actual cardinality for parameter $note/child::tei:note/descendant::text() does not match the cardinality declared in the function's signature: zero or one. Expected cardinality: {3}, got {4}. [at line 226, column 29, source: /db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
      In function:
              edit:make-paraphrase-text(element(tei:cit)) [171:56:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:get-body-value(node()) [84:18:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:get-body-object(node()) [65:21:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:make-map(element(), xs:string) [49:21:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              edit:get-annotations(element(tei:TEI)+, xs:string) [54:13:/db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm]
              local:get-annotations(xs:string, element(), xs:string, xs:boolean) [98:21:/db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm]. XPTY0004: The actual cardinality for parameter $note/child::tei:note/descendant::text() does not match the cardinality declared in the function's signature: zero or one. Expected cardinality: {3}, got {4}. in /db/apps/ahiqar/modules/AnnotationAPI/editorial.xqm at line 226
    • Resolved by Michelle Weidling

      terminal log should print a textgrid URI.

      (Line: 73 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Recreate annotation items for TEI file 4107f (manifest )
      […]
      (Line: 73 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Recreate annotation items for TEI file 41n22 (manifest )

      compared to previous documents in same import:

      (Line: 73 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Recreate annotation items for TEI file 40v2q (manifest 40v2p)
      (Line: 73 /db/apps/ahiqar/modules/AnnotationAPI/save-annotations.xqm) Recreate annotation items for TEI file 40xns (manifest 40xnq)

      there is something wrong with that information that does not trigger an error, but we should investigate.

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading