[CWB] XML template and annotation template
Hardie, Andrew
a.hardie at lancaster.ac.uk
Tue Jan 10 11:01:46 CET 2023
Hi Peter,
(I know this one is from way back but I am, for the first time in a long while, able to try and catch up on my email a bit ...)
> Is it possible to create these in some sort of text format to use in the corpus installation process, or do I have to create a new one for every change to my set of p-attributes?
The idea of the templates is to avoid the need to enter the attribute descriptions every time on the installation web form. The emphasis is on re-use. Generally speaking, creating a new template for every different configuration of settings that you want to have available for re-use is the envisioned practice. I am not sure I understand why you would be creating them often enough that using the web form becomes a major time bottleneck...
Template creation can be scripted using add_annotation_template() , add_xml_template(), and add_metadata_template() if you really want to - those functions are all pretty well commented, and the load_default_*_templates() functions exemplify their use - or you can get the same effect with raw SQL commands; the needed SQL can be deduced from the add_* functions.
best
Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Uhrig, Peter
Sent: 15 June 2022 12:54
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: [CWB] XML template and annotation template
Dear all,
I'm interested in trying out the XML template and annotation template functionality. Is it possible to create these in some sort of text format to use in the corpus installation process, or do I have to create a new one for every change to my set of p-attributes? (The web form looks like I'd have to create it completely from scratch, too, right?) I guess I could modify the load_default_annotation_templates() function in template-lib.php, but that is not very sustainable. Maybe we could contribute a function that loads a template description from a, say, JSON file? I'd be very interested in your thoughts and input!
Thanks and best wishes!
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20230110/bfc33db7/attachment.html>
More information about the CWB
mailing list