Closed letailli closed 1 year ago
Please use the CAS XMI format instead of the inline XML format. I recommend processing the CAS XMI data using DKPro Cassis (Python) or for Java users the Apache UIMA Java SDK.
Thank you for your answer.
However I don't get the data either with this format.
I tried :
http://localhost:8080/api/aero/v1/projects/0/documents/3?format=xmi-xml1.1
I saved the result in chataigne_test_Opscidia_API_xmi-xml1.1_API.zip
I can see a line <type:LayerDefinition xmi:id="1417" name="webanno.custom.Language" uiName="Document Metadata"/>
but the data are missing.
Whereas in the manual export I have them :
<custom:Language xmi:id="1368" sofa="1" Language="EN" OriginalURL="https://lemonde.fr"/>
(I attached the full export in chataigne_test_Opscidia_export_UIMA CAS XMI (XML 1.1).zip
)
chataigne_test_Opscidia_API_xmi-xml1.1_API.zip chataigne_test_Opscidia_export_UIMA CAS XMI (XML 1.1).zip
You are exporting the document you have originally imported. To export annotated documents via the remote API, use the "read annotations" endpoint: https://openminted.github.io/releases/aero-spec/1.0.0/omtd-aero/#_read_annotations
Yes with read annotations it's OK. Thank you
Another tip: if you plan using DKPro Cassis, export using CAS XMI XML 1.0 because there seems to be no Python-based XML parser that supports XML 1.1.
Describe the bug I am not sure this a bug. It might be the expected behavior but it would be great if we can use DocumentMetadata and remote API modules together.
To Reproduce
I setup DocumentMetadata and remote API in INCEpTION configuration
I create a projet .
I setup a "Document Metadata" layer in the project (see Screenshot 1)
I add a document in the project and fill the metadata for this document (see Screenshot 2)
I try to read the document to get the metadata.
http://localhost:8080/api/aero/v1/projects/0/documents/3?format=dkpro-core-uima-inline-xml
Expected behavior The metadata don't appear in the API response. I would like to acess Document Metadata through the remote API (
create
andread
).Screenshots
Please complete the following information: