Difference between revisions of "Catmandu"

From BITPlan cr Wiki
Jump to navigation Jump to search
(pushed from rq by wikipush)
 
 
Line 6: Line 6:
 
sudo cpanm Catmandu::PICA
 
sudo cpanm Catmandu::PICA
 
</source>
 
</source>
= CEUR-WS example ==
+
= CEUR-WS example =
 
<source lang='bash'>
 
<source lang='bash'>
 
#!/bin/bash
 
#!/bin/bash

Latest revision as of 10:54, 6 March 2023

Installation

sudo apt-get install libcatmandu-perl libcatmandu-sru-perl cpanminus
sudo cpanm Catmandu::PICA

CEUR-WS example

#!/bin/bash
# WF 2022-08-27
# see https://github.com/WolfgangFahl/pyCEURmake/issues/26
now=$(date -I)
ci -l -m"automatic check in $now" ceurws.pica
catmandu convert kxp --query 'pica.1001="b" and pica.1045="fam" and pica.1049="669696374"' to pp | picadata -p 003@,036E,017G > ceurws.pica
ci -l -m"automatic check in $now" ceurws.pica