Open skarampatakis opened 1 year ago
For export with NIF, the value
and/or identifier
fields must be a valid IRI. E.g. if you simply put LOC
into the value, this is not a valid IRI and the annotation will not be exported. If you put e.g. urn:LOC
there, it will work. The value
feature maps to the NIF itsrdf:taClassRef
property which apparently needs an IRI as its value.
For curiosity: (why) do you need to use NIF?
For export with NIF, the
value
and/oridentifier
fields must be a valid IRI. E.g. if you simply putLOC
into the value, this is not a valid IRI and the annotation will not be exported. If you put e.g.urn:LOC
there, it will work. Thevalue
feature maps to the NIFitsrdf:taClassRef
property which apparently needs an IRI as its value.
Thanks a lot, that makes sense. However I would say that this could be handled by the export component already, ie creating those IRIs by using some default or user defined prefix. Editing the tagsets works as you described, but then exporting to other formats will show also IRIs instead of the named entity types in this case, which might cause other issues. Plus if I m not wrong, editing the tagsets after annotation is done, does not seem to make the trick, you have to go over all annotations and change the NE type.
For curiosity: (why) do you need to use NIF?
I will further analyse and process the annotated documents after manual annotation and all of the rest data is in RDF so I thought that this could save me some time converting the annotations from other formats.
Maybe this can be closed in favor of #4567?
IMHO NIF is generally not a great format to use and #4567 is potentially more useful.
But this is just bit of a special case related to the NIF format that might still be improved here.
Describe the bug
Annotations are missing when exporting into NIF. Exporting to other formats works well, the annotations are there, but when NIF is selected, the annotations are not there anymore.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Annotations are there in the respective span, as it happens to be when other export formats are chosen.
Screenshots
No response
Environment
Version and build ID: INCEpTION -- 28.5 (2023-07-20 07:20:35, build db3d2ed7) Operating system: Docker on Ubuntu 22.04 Browser: Chrome Version 114.0.5735.90 (Official Build) (64-bit)
Additional context
No response