Wicri:CobaltMaghrebV1/Paramètres, filtre Maghreb
De Wicri Terre
Cette page introduit un ensemble d'outils d'extraction de contenus (ExplorAddFullText, ExplorExtractContent, SxmlCumul) qui permettent d'insérer des filtres spécifiques relativement simples à concevoir.
En l’occurrence le filtre lex sur le Maghreb devrait être remplacé bientôt par un outil opérant sur des tables.
Le résultat final est reproduit sur Serveur d'exploration sur le cobalt au Maghreb.
Le filtre
cat <<... >Import/maghrebFilter.lex
%START K
%START W
%START C
%{
char *key;
double w;
void print (char* text, double param)
{
printf ("%s\t%s\t%08.3f\n", key, text, param*w);
}
%}
%%
<K>\t BEGIN W;
<K>[^\t]+ {strcpy(key, yytext);}
<W>\t BEGIN C;
<W>[^\t]+ {w=strtod(yytext, NULL);}
<C>Morocco print("Maroc", 1.);
<C>Maroc print(yytext, 1.);
<C>Rabat print(yytext, 1.);
<C>Tunisi[ae] print("Tunisie", 1.);
<C>Tunis print("Tunis", 1.);
<C>Atlas print(yytext, 0.5);
<C>"Anti-Atlas" print(yytext, 1.5);
<C>Algiers print("Alger", 1.);
<C>Alger print("Alger", 1.);
<C>Oran print("Oran", 1.);
<C>Maghreb print("Maghreb", 2.);
<C>Bou[\- ]Azzer print("Bou-Azzer", 2.);
<C>Oued print(yytext, 2.);
<C>[Dd]jebel print(yytext, 2.);
<C>\n BEGIN K;
<C>. ;
%%
main()
{
key=malloc(10);
BEGIN K;
yylex();
}
...
lex Import/maghrebFilter.lex
gcc lex.yy.c -ll -o bin/maghrebFilter
Test de mise en œuvre
HfdIndexSelect -h $EXPLOR_AREA/Data/Main/Exploration/Title.i -Sk "cobalt" \
| ExplorAddFullText -h Data/Main/Exploration/biblio.hfd -K \
| ExplorExtractContent -f kwc \
| bin/maghrebFilter \
| sort \
| SxmlSelect -p @1 -p "@2(@3)" \
| IndexBuildRec \
| SxmlSelect -g idx/f/1 -g idx/k/1 -p @g1 -p @g2 \
| sort -rn
- Exemple de résultat
8 000609 7 000684 6 001437 5 000814 4 001A31 4 000295 3 000422 2 001D00 2 001754 2 001696 2 001595 2 001088 2 000D20 2 000C11 2 000B95 2 000B93 2 000A43 2 000970 2 000858 2 000606 2 000419 2 000320
Nouveau test
HfdIndexSelect -h $EXPLOR_AREA/Data/Main/Exploration/Title.i -Sk "cobalt" \
| ExplorAddFullText -h Data/Main/Exploration/biblio.hfd -K \
| ExplorExtractContent -f kwc \
| bin/maghrebFilter \
| SgmlFast -c2 \
| sort | \
| SxmlCumul -wd \
| SxmlSelect -g i/w/1 -g i/k/1 -p @g1 -p @g2 | sort -rn
- résultat
0030.000 001595 0010.000 001394 0008.000 000609 0007.000 001437 0007.000 000684 0004.500 000814 0004.000 001A31 0004.000 000295 0003.000 001754 0003.000 000888 0003.000 000832 0003.000 000482 0003.000 000445 0003.000 000422 0003.000 000355 0002.000 001D00 0002.000 001696 0002.000 001088 0002.000 000D20 0002.000 000C11 0002.000 000B95 0002.000 000B93 0002.000 000A43 0002.000 000970 0002.000 000858 0002.000 000606 0002.000 000419 0002.000 000320
Test final
HfdIndexSelect -h $EXPLOR_AREA/Data/Main/Exploration/Title.i -Sk "cobalt" \
| ExplorAddFullText -h Data/Main/Exploration/biblio.hfd -K \
| ExplorExtractContent -f kwc \
| bin/maghrebFilter \
| SgmlFast -c2 \
| sort | SxmlCumul -wd \
| SxmlSelect -g i/w/1 -g i/k/1 -p @g1 -p @g2 | sort -rn \
| SxmlSelect -p @2 -p @1 | HfdSelect -h $EXPLOR_AREA/Data/Main/Exploration/biblio -i \
| SxmlSelect -g record/TEI/teiHeader/fileDesc/titleStmt/title/1 \
-g record/TEI/teiHeader/fileDesc/publicationStmt/idno@type=RBID/1 -p "*[@2] : {{Explor lien
|wiki= Wicri/Terre
|area= CobaltMaghrebV1
|flux= Main
|étape= Exploration
|type= RBID | clé=@g2 | texte=@g1}}"
- Résultat
- [0030.000] : New data and hypotheses on the origin of the cobalt arsenide ores of the Bou Azzer area, Morocco
- [0010.000] : The gabbro-dolerite magmatism of the Foum Zguid Region : Relation to deep structure of Morocco and possible potential for cobalt, nickel and platinum-group metals
- [0008.000] : Improvement of mechanical performance of epoxy resins filled with cobalt and chromium powders
- [0007.000] : The worldwide availability of cobalt
- [0007.000] : Study of Magnetic Phase Transition and Spin Frustration in Cobalt Aluminium Oxide Materials based on High Temperature Series Expansions Model
- [0004.500] : Nanostructured cobalt on porous silicon substrate: Structure and magnetic behaviour
- [0004.000] : COBALT: A STRATEGIC AND CRITICAL RESOURCE FOR INDUSTRIALIZED NATIONS, SUPPLIED BY DEVELOPING NATIONS
- [0004.000] : Solvent effects of N‐nitroso, N‐(2‐chloroethyl), N′,N′‐dibenzylsulfamid and its copper(II) and cobalt(II) complexes: fluorescence studies
- [0003.000] : Leaching kinetics of natural cobalt triarsenide in chlorine solutions
- [0003.000] : Dose measurements for characterization of a semi-industrial cobalt-60 gamma-irradiation facility
- [0003.000] : Mass transfer correlation of simultaneous removal by cementation of nickel and cobalt from sulfate industrial solution containing copper Part I : Onto rotating zinc electrode disc
- [0003.000] : Laboratory study on individual and combined effects of cobalt- and zinc-spiked sediment on meiobenthic nematodes.
- [0003.000] : Propolis attenuates cobalt induced-nephrotoxicity in adult rats and their progeny
- [0003.000] : Effect of substrate temperature on the stability of transparent conducting cobalt doped ZnO thin films
- [0003.000] : Propolis attenuates cobalt induced-nephrotoxicity in adult rats and their progeny.
- [0002.000] : The crystal structure of Tutton's salts. VI. Vanadium(II), iron(II) and cobalt(II) ammonium sulfate hexahydrates
- [0002.000] : Structure du cyclo‐triphosphate mixte de cobalt–rubidium hexahydraté
- [0002.000] : Influence of preparation method on catalytic properties of mixed calcium-cobalt orthophosphates
- [0002.000] : Face centred cubic cobalt ultrathin-layers in Au/Co(111) multilayers: a study by electron diffraction and by HREM
- [0002.000] : Correlation between selectivity and surface charge in cobalt spinel ultrafiltration membrane
- [0002.000] : Synthesis, characterization and electrochemical behaviour of cobalt(II) and cobalt(III):O2− complexes, respectively, with linear and tripodal tetradentate ligands derived from Schiff bases
- [0002.000] : Titania-Supported Cobalt and Cobalt–Phosphorus Catalysts: Characterization and Performances in Ethane Oxidative Dehydrogenation
- [0002.000] : Interface investigations of iron and cobalt metallized porous silicon: AES and FTIR analyses
- [0002.000] : Synthesis, Characterization and Crystal Structure of a new Cobalt Borophosphate, NaCoH2BP2O9
- [0002.000] : Poly[tetraaquadi‐μ3‐malonato‐cobalt(II)calcium(II)]
- [0002.000] : Le phosphate de cobalt et de lithium à valence mixte Li4+xCo2−x(P2O7)2 (x = 0,03): étude structurale et analyse de distribution de charge
- [0002.000] : KCo(H2O)2BP2O8·0.48H2O and K0.17Ca0.42Co(H2O)2BP2O8·H2O: two cobalt borophosphates with helical ribbons and disordered (K,Ca)/H2O schemes
- [0002.000] : Biodegradation of petroleum hydrocarbons in the presence of nickel and cobalt
- [0001.000] : Finland to be major cobalt producer
- [0001.000] : A cohort mortality study among cobalt and sodium workers in an electrochemical plant
- [0001.000] : Structure du bis(cyclo‐triphosphate) de tétraammonium et de cobalt(II) tétrahydraté
- [0001.000] : Electrosynthesis of cobalt (III) ions in concentrated H3PO4 medium
- [0001.000] : CoAPO‐21, a cobalt‐doped aluminophosphate related to AlPO4‐21
- [0001.000] : A Mössbauer spectroscopic study of cobalt-iron molybdates
- [0001.000] : Cobalt-55 positron emission tomography in traumatic brain injury: a pilot study
- [0001.000] : A Mixed Zinc–Cobalt Diphosphate, ZnCoP2O7
- [0001.000] : Cobalt(II) trisodium hexamolybdoperiodate tetradecahydrate
- [0001.000] : Cobalt spinel CoAl2O4 via sol-gel process: elaboration and surface properties
- [0001.000] : Effect of Substitution of Iron by Cobalt on the Physical Properties in the Sm2Fe14Mn3 Compound
- [0001.000] : Occupational cobalt sensitivity in 2 hard‐metal press operators
- [0001.000] : The cost of nickel allergy: a global investigation of coin composition and nickel and cobalt release
Sur tout le corpus
time HfdCat Data/Main/Exploration/biblio.hfd | SgmlFast -c2 \
| ExplorAddFullText -h Data/Main/Exploration/biblio.hfd -K \
| ExplorExtractContent -f kwc \
| bin/maghrebFilter \
| SgmlFast -c2 \
| sort | SxmlCumul -wd \
| SxmlSelect -g i/w/1 -g i/k/1 -p @g1 -p @g2 | sort -rn \
| SxmlSelect -p @2 -p @1 | HfdSelect -h $EXPLOR_AREA/Data/Main/Exploration/biblio -i \
| SxmlSelect -g record/TEI/teiHeader/fileDesc/titleStmt/title/1 \
-g record/TEI/teiHeader/fileDesc/publicationStmt/idno@type=RBID/1 -p "*[@2] : {{Explor lien
|wiki= Wicri/Terre
|area= CobaltMaghrebV1
|flux= Main
|étape= Exploration
|type= RBID | clé=@g2 | texte=@g1}}"
- [0214.500] : The Proterozoic sulphide alteration pipe of Sidi Flah and its host series. New data for the geotectonic evolution of the Pan-African Belt in the eastern Anti-Atlas (Morocco)
- [0210.000] : The Pan-African Belt
- [0177.500] : Post‐Variscan exhumation of the Central Anti‐Atlas (Morocco) constrained by zircon and apatite fission‐track thermochronology
- [0176.500] : Geochemistry and significance of metavolcanic rocks from the Bou Azzer-El Graara ophiolite (Morocco)
- [0143.500] : Sachregister der Bände 102–120
- [0138.500] : Gold and platinum group elements in cobaltarsenide ores: Hydrothermal concentration from a serpentinite source-rock (Bou Azzer, Morocco)
- [0138.000] : Evidence for a Panafrican volcanic arc and wrench fault tectonics in the Jbel Saghro, Anti-Atlas, Morocco
- [0120.500] : Ornithology of the Maroccan “Middle‐Atlas”.
- [0120.500] : Tectonique et volcanisme tardi-Pan Africains (580-560 M.a.) dans l'Anti-Atlas Central (Maroc): interprétation géodynamique à l'échelle du NW de l'Afrique
- [0118.000] : The Moroccan Anti-Atlas: the West African craton passive margin with limited Pan-African activity. Implications for the northern limit of the craton
- [0116.000] : Abstracts
- [0111.000] : 1. Anti-atlas (Morocco)
- [0110.000] : Abstracts
- [0107.500] : Mixed type sulfide deposits in Northern Tunisia, regenerated in relation to paleogeography and tectonism
- [0107.000] : Sedimentary and volcanic evolution of a Neoproterozoic continental margin (Bleida, Anti-Atlas, Morocco)
- [0105.500] : Index
- [0105.500] : ABSTRACTS FOR THE 10TH WORLD CONGRESS ON PEDIATRIC DERMATOLOGY
- [0099.500] : Un enregistrement sédimentaire éocambrien dans un bassin intracontinental en distension: le cycle « conglomérats de base — unité calcaire — grès de Tikirtde Bou-Azzer El Graara (Anti-Atlas central, Maroc)
- [0096.500] : Geochemistry of Precambrian ophiolites from Bou Azzer, Morocco
- [0096.000] : Proterozoic collisional basins in a Pan-African suture zone, anti-atlas mountains, Morocco
- Nouvel essai
- [0395.500] : The Proterozoic sulphide alteration pipe of Sidi Flah and its host series. New data for the geotectonic evolution of the Pan-African Belt in the eastern Anti-Atlas (Morocco)
- [0310.000] : The Pan-African Belt
- [0260.500] : Post‐Variscan exhumation of the Central Anti‐Atlas (Morocco) constrained by zircon and apatite fission‐track thermochronology
- [0223.000] : The Moroccan Anti-Atlas: the West African craton passive margin with limited Pan-African activity. Implications for the northern limit of the craton
- [0191.000] : Evidence for a Panafrican volcanic arc and wrench fault tectonics in the Jbel Saghro, Anti-Atlas, Morocco
- [0190.500] : Geochemistry and significance of metavolcanic rocks from the Bou Azzer-El Graara ophiolite (Morocco)
- [0179.000] : 1. Anti-atlas (Morocco)
- [0158.500] : The Precambrian of the Anti-Atlas (Morocco): A geochronological synthesis
- [0153.500] : Tectonique et volcanisme tardi-Pan Africains (580-560 M.a.) dans l'Anti-Atlas Central (Maroc): interprétation géodynamique à l'échelle du NW de l'Afrique
- [0150.500] : Mixed type sulfide deposits in Northern Tunisia, regenerated in relation to paleogeography and tectonism
- [0146.500] : Géochimie et signification géotectonique des volcanites du Cryogénien inférieur du Saghro (Anti-Atlas oriental, Maroc)
- [0143.500] : Sachregister der Bände 102–120
- [0139.500] : Gold and platinum group elements in cobaltarsenide ores: Hydrothermal concentration from a serpentinite source-rock (Bou Azzer, Morocco)
- [0139.500] : ABSTRACTS FOR THE 10TH WORLD CONGRESS ON PEDIATRIC DERMATOLOGY
- [0139.000] : Lithostratigraphie et datation du Proterozoique de la boutonniere d'Ifni (Anti-Atlas, Maroc)
- [0137.000] : Sedimentary and volcanic evolution of a Neoproterozoic continental margin (Bleida, Anti-Atlas, Morocco)
- [0135.000] : Superposition de la tectonique éburnéenne et panafricaine dans les granitoïdes de la bordure nord du craton ouest africain, boutonniére de Zenaga, Anti-Atlas central, Maroc
- [0131.500] : Un enregistrement sédimentaire éocambrien dans un bassin intracontinental en distension: le cycle « conglomérats de base — unité calcaire — grès de Tikirtde Bou-Azzer El Graara (Anti-Atlas central, Maroc)
- [0128.000] : Proterozoic collisional basins in a Pan-African suture zone, anti-atlas mountains, Morocco
- [0126.500] : Structure, evolution and palaeogeography of the West African craton and bordering belts during the Neoproterozoic
- [0124.500] : Ornithology of the Maroccan “Middle‐Atlas”.
- [0124.500] : La série du PII–III de l'Anti-Atlas occidental (Sud marocain) : un olistostrome à la base de la couverture post-panafricaine (PIII) du Protérozoı̈que supérieur
- [0124.500] : POSTERS
- [0123.000] : Les granitoïdes néoprotérozoïques de Khzama, Anti-Atlas central, Maroc: marqueurs de l'évolution d'un magmatisme d'arc à un magmatisme alcaline
- [0109.500] : The French North African Background
- [0103.500] : Gravity analysis of salt structures. An example from the El Kef‐Ouargha region (northern Tunisia)
- [0102.500] : IV.—Supplementary Notes on Mr. C. M. N. White's “Contribution to the Ornithology of Crete”
- [0101.500] : Geochemistry of Precambrian ophiolites from Bou Azzer, Morocco