Create new aramaic on website
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
Activity
assigned to @mrodzis
added 12 commits
-
c9a9b8b3...9c08e9d8 - 11 commits from branch
develop
- 58ea84b6 - Merge branch 'develop' into create-new-aramaic-on-website
-
c9a9b8b3...9c08e9d8 - 11 commits from branch
requested review from @mgoebel
- Resolved by Michelle Weidling
- Resolved by Michelle Weidling
- 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.
Please register or sign in to reply