korpling / annatto

Converts linguistic data formats based on the graphANNIS data model as intermediate representation and can apply consistency tests.
Apache License 2.0
1 stars 0 forks source link

File embeddings: Allow to embed content as well #186

Open MartinKl opened 7 months ago

MartinKl commented 7 months ago

file_nodes.rs provides a tool to embed files as nodes of type file and setting a path. This could be extended to actually embed the content of the file (as an alternative or additionally).

MartinKl commented 7 months ago

This is a more complex issue and should maybe postponed until there is a more clearly defined use case for it. For example, this would require graphANNIS to handle very large annotation values (in its current design) which it probably can, but it's not intended use. Also, there is currently no mechanism to write the contents of a file as CDATA, which could be triggered by hardcoding it, but that again might make exporting the contents painful.