[CWB] execute-cli functions
"Andrés Chandía"
andres at chandia.net
Fri Sep 8 09:15:50 CEST 2017
If at least I could install the corpus at the cqpweb it would be wonderful,
I've
tried but no success, I guess there are some parameters to add....
there is a
function called:
install_new_corpus
and then this at the file
lib/admin-execute.inc.php
case 'installCorpus':
       case 'installCorpusIndexed':
              Â
$_GET['function'] = 'install_new_corpus';
              Â
/* in this case there is no point sending parameters;Â Â Â Â Â */
              Â
/* the function is better off just getting them from $_get */
              Â
$_GET['locationAfter'] = 'XX'; //the function itself sets this
              Â
require('../lib/execute.inc.php');
              Â
exit();
And also a a form to do it: function printquery_installcorpus_indexed()
But I haven't discovered how to fill it from command line...
Some help?, please?
El Dom, 30 de Julio de 2017, 21:51, Hardie,
Andrew escribió:
Not
sure how you get from ââ¬Åtoo complex to do via the CLIâ⬠to
ââ¬Åthat means it is possibleââ¬. But if you are keen to try
proving me wrong, start by reading admin-install.inc.php.
best
Andrew.
From:
"Andrés ChandÃÂa" [mailto:andres at chandia.net]
Sent: 30 July 2017 18:35
To: Hardie, Andrew
Cc: Open source development of the Corpus WorkBench
Subject: RE: [CWB] execute-cli functions
Mmm, that means it is possible... could you
give me some directions on which way go to try it....
thanks...
El
Dom, 30 de Julio de 2017, 16:15, Hardie, Andrew escribió:
âââ¬Ã
âThe
internalsâââ¬
= the way CQPweb works behind the scenes. Some things are simple enough that a single
function call will suffice. Others arenâââ‰â¢t.
Installing
a corpus is, unfortunately, one of the things that is too complex to do via the
CLI.
best
Andrew.
From:
cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
On Behalf Of
"Andr̮̩s
ChandÃÆÃÂa"
Sent: 30 July
2017 00:39
To: Open source
development of the Corpus WorkBench
Subject: Re:
[CWB] execute-cli functions
Ok, what you mean
with "the internals" and any way I'm looking for something that let me do the next
things from command line:
someFunction installIndexedCorpus
--name="theName" --desc"theDescription" --reg:"defaultDir"
--css="thisCss.css"
So I can have the corpus available at the
web interface without cliking or choosing parameters.
And hopefully, later do
this:
someOtherFunction manageMetadata --source="createMetadataFromXml"
--use="fh1,fh2,fh3,fh4..etc" --freqlist="auto"
yetAnotheFunction manageXml --handle.classif="theHandle"
--description="theDescription"
andAnotherFunction manageAnnotation
--handle="theHandle" --description="theDescription"
andAnotherFunction manageCEQLBindings --prim="primaryAnnotation"
--sec="secondaryAnnotation" --terc="terciaryAnnotation"
--comb"combinedAnnotation"
andAnotherFunction manageFreqLists
--public="true"
and if there are more to manage access to the
corpus for instance, much better...
well, thats what I would like to be able to
do...
thanks
El Sab, 29 de Julio de 2017, 20:41,
Hardie, Andrew escribiÃÆó:
There
isnÃÆââââ¬Å¡Ã¬Ã¢ââ¬Ã¢t
one
ÃÆââââ¬Å¡Ã¬Ã¢ââ¬Ã
â
sorry. You need knowledge of the internals to use this script safely.
best
Andrew.
From:
cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
On Behalf Of
"Andr̮̩̉̉s
ChandÃÆÃâÃâÃÂa"
Sent: 29 July
2017 18:43
To: Open source
development of the Corpus WorkBench
Subject: [CWB]
execute-cli functions
(sorry I
should have sent here)
Where can I get a list and definition of the
functions that this script accepts...
php execute-cli.php NAME OF FUNCTION ARG1
ARG2 ...
Thanks....
_______________________
andr̮̩̉̉s
chandÃÆÃâÃâÃÂa
NMT |
Dungupeyem |
Corlexim
administrador
de:
Parles.upf |
Amind terapia
|
ONG Mapuche koyaktu |
Nocando |
IAC |
CddZ |
CatCg |
mail:
ONG Mapuche koyaktu |
Psicoaching |
P
No imprima innecesariamente.
ÃÆââ¬Å¡ÃâáCuide el medio
ambiente!
_______________________
andr̮̩s
chandÃÆÃÂa
NMT |
Dungupeyem |
Corlexim
administrador de:
Parles.upf |
Amind terapia |
ONG Mapuche koyaktu |
Nocando |
IAC |
CddZ |
CatCg |
mail:
ONG Mapuche koyaktu |
Psicoaching |
P
No imprima innecesariamente.
ÃâáCuide el medio ambiente!
_______________________
andrés chandÃÂa
NMT |
Dungupeyem |
Corlexim
administrador de:
Parles.upf |
Amind terapia | ONG Mapuche koyaktu |
Nocando |
IAC | CddZ |
CatCg
|
mail: ONG Mapuche koyaktu |
Psicoaching |
P
No imprima innecesariamente. áCuide el medio
ambiente!
_______________________
            andrés
chandÃa
NMT |
Dungupeyem | Corlexim
administrador de:
Parles.upf | Amind
terapia | ONG Mapuche koyaktu | Nocando | IAC
| CddZ | CatCg |
mail: ONG Mapuche koyaktu | Psicoaching |
P No imprima innecesariamente. ¡Cuide el medio ambiente!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20170908/110a4203/attachment.html>
More information about the CWB
mailing list