diff --git a/canoprof_to_hdoc/README.md b/canoprof_to_hdoc/README.md index 609a20718df2202e8e31bd9f8da43aec890597d7..d605f6f5272e056f43fe14d9360025da9195942b 100644 --- a/canoprof_to_hdoc/README.md +++ b/canoprof_to_hdoc/README.md @@ -1,5 +1,13 @@ # Convertisseur Canoprof vers HDOC +##Credits + +### Autumn 2016 + +* NEVEUX Anaïs + +* BELLIER Pierre-Ulysse + ## User story Un utilisateur a créé un cours de mathématiques à l'aide de l'outil Canoprof. Il souhaite, pour une raison quelconque, convertir son projet (et donc ses activités et programmations) dans un autre format. Pour cela il utilise notre convertisseur qui permet préalablement une conversion vers un format intermédiare (hdoc). Il fait donc un clic droit sur l'élément principal de son projet sous Canoprof et clique sur "exporter l'archive". Il laisse les options (Inclure le réseau descendant complet des items sélectionnés, et Préserver les espaces de l'atelier) par défaut. Il déplace ensuite le fichier .scar obtenu dans le dossier input du convertisseur puis exécute le fichier run.bat (ou run.sh sous un système UNIX). Une fois l'exécution terminée, il récupère son hdoc dans le dossier output. @@ -16,4 +24,15 @@ Un utilisateur a cr - Information/Warning/Advice/ect... - Method and Remind fully functional. - Add QCU and QCM. Transclusion of them available too. Need to fix a schema validation error when putting a title to a question, without filling the question content. --Add "Exercice redactionnel" and transclusion. \ No newline at end of file +- Add "Exercice redactionnel" and transclusion. + +## Known bugs +- You can have an exercice with no question but a solution. We should add a if statement to handle this. +- Something create a "keywrds" node inside the opale output, that make the schema invalid. Editing the title inside myScenari and just pressing enter is sufficient to fix that. But it will be better to fix that inside one of the xsl files. + +## TODO List +- Allow user to convert scar files which contain a .programme file with a name different than "Test.programme". +- Handle multiple files conversion +- Add all other type of exercices +- Handle other kind of paragraph +- Handle resources (images for example) \ No newline at end of file diff --git a/canoprof_to_hdoc/xsl/programmation.xsl b/canoprof_to_hdoc/xsl/programmation.xsl index 993c834f8497ba205ec138fefd6224152c22aac4..15a78c7d78adb2e1b3806c258a0485d5305c5f5b 100644 --- a/canoprof_to_hdoc/xsl/programmation.xsl +++ b/canoprof_to_hdoc/xsl/programmation.xsl @@ -343,7 +343,7 @@

- +
@@ -394,7 +394,7 @@

- +
@@ -411,7 +411,7 @@

- +
@@ -429,7 +429,7 @@

- +

@@ -448,7 +448,7 @@

- +

@@ -464,12 +464,13 @@
+ + +
+ +
+
- -
- -
-
@@ -478,19 +479,25 @@
+ +
+ +
+
+ +
+ +
+
- -
- -
-
+ diff --git a/canoprof_to_opale/README.md b/canoprof_to_opale/README.md index f026ca0af52e6441ef9b25a2a155bcfdbef2489d..883a632a62dcd55d13dc13dec9eb19df1d6439ac 100644 --- a/canoprof_to_opale/README.md +++ b/canoprof_to_opale/README.md @@ -1,12 +1,20 @@ # Canoprof2Opale +##Credits + +### Autumn 2016 + +* NEVEUX Anaïs + +* BELLIER Pierre-Ulysse + ## User story Un utilisateur a créé un cours de mathématiques à l'aide de l'outil Canoprof. Il souhaite, pour une raison quelconque, convertir son projet (et donc ses activités et programmations) au format Opale. Pour cela il utilise notre convertisseur qui va agir en deux étapes : une conversion dans un format intermédiaire (le format hdoc), puis conversion de ce hdoc dans le format Opale. Une fois son cours créé, il effectue un clic-droit sur l'élément racine de son projet, et choisit "exporter l'archive". Il laisse les options (Inclure le réseau descendant complet des items sélectionnés, et Préserver les espaces de l'atelier) par défaut. Il déplace ensuite le fichier .scar obtenu dans le dossier input du convertisseur puis exécute le fichier run.bat (ou run.sh sous un système UNIX). Il récupère ensuite un nouveau fichier .scar dans le dossier output, qu'il pourra importer dans Scenari. ## Getting started - Put the Canoprof .scar in the input folder. The scar should be the only one in this folder. The .programme should be into the root of your .scar and should be named Test.programme -An .scar example is already in the input folder. +A .scar example is already in the input folder. - Check if there's no .scar file in the input folder of canoprof_to_hdoc folder. If files exist, please remove them. Otherwise, the converter can take one of the .scar in this folder instead of the one you want to convert. - Use the run.bat file to launch conversion. - You will find your converted .scar in the output folder. @@ -14,10 +22,19 @@ An .scar example is already in the input folder. ## What the converter handle - Sequence - Session -- Activity created in the .programme, transclusion should be available soon. +- Activity created in the .programme, transclusion available. - Information/Warning/Advice/ect... - Method and Remind fully functional - QCM and QCU working, even with transclusion. - Add "Exercice redactionnel" and transclusion. +## Known bugs +- You can have an exercice with no question but a solution. We should add a if statement to handle this. +- Something create a "keywrds" node inside the opale output, that make the schema invalid. Editing the title inside myScenari and just pressing enter is sufficient to fix that. But it will be better to fix that inside one of the xsl files. +## TODO List +- Allow user to convert scar files which contain a .programme file with a name different than "Test.programme". +- Handle multiple files conversion +- Add all other type of exercices +- Handle other kind of paragraph +- Handle resources (images for example) diff --git a/canoprof_to_opale/sample/Choice_explanation.scar b/canoprof_to_opale/sample/Choice_explanation.scar new file mode 100644 index 0000000000000000000000000000000000000000..37e3d6b740eca65653bf280675c5d83f7d9b0cda Binary files /dev/null and b/canoprof_to_opale/sample/Choice_explanation.scar differ diff --git a/canoprof_to_opale/sample/Fix_QCU_QCM.scar b/canoprof_to_opale/sample/Fix_QCU_QCM.scar new file mode 100644 index 0000000000000000000000000000000000000000..6769c5d3af42f0bf2bdc7d1548684dadb2071a97 Binary files /dev/null and b/canoprof_to_opale/sample/Fix_QCU_QCM.scar differ diff --git a/hdoc_to_basex/README.md b/hdoc_to_basex/README.md index 92e8b43a4e078c0b8039dcc7882814165374f4eb..3a5792a86be813a3b22fce9929454b1f02fd47a3 100644 --- a/hdoc_to_basex/README.md +++ b/hdoc_to_basex/README.md @@ -42,7 +42,11 @@ Step by step : Follow the instructions in the script, and then execute it. [Step 3 : Make XQuery request] - - In the Text Editor of BaseX, you can open and execute xquery scripts in folder [`basex/xquery`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex/basex/xquery). - - Available scripts : - * searchDocByAuthor.hq - * searchDocByTitle.hq \ No newline at end of file + - In the Text Editor of BaseX, you can open and execute xquery script "main.xq" in folder [`basex/xquery`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex/basex/xquery). + It's in this main module that we call predefined functions and execute script + + - .xqm files are library modules where we have defined functions, we can go to these files for more detailed using instructions + Available library modules : + * searchDocByAuthor.xqm + * searchDocByTitle.xqm + * searchDocByTitle.xqm \ No newline at end of file diff --git a/hdoc_to_basex/basex/xquery/main.xq b/hdoc_to_basex/basex/xquery/main.xq new file mode 100644 index 0000000000000000000000000000000000000000..f4e867ef34d9f99ed0d08af753e4d3122eb4f107 --- /dev/null +++ b/hdoc_to_basex/basex/xquery/main.xq @@ -0,0 +1,10 @@ +(: this script with .xq as suffix is the main module :) +(: all functions defined in .xqm files (library modules) can be called here :) + +import module namespace myNs = "https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex" at "searchSectionByTitle.xqm", "searchSectionByTitle.xqm", "searchDocByAuthor.xqm"; + +(: myNs:searchDocByTitle('^NF29_HdocEtherpad$', //document ):) +(: myNs:searchSectionByTitle('contenu', //document) :) +(: myNs:searchDocByAuthor('montangé', //document) :) + +myNs:searchSectionByTitle('xml', myNs:searchDocByAuthor('montangé', //document)) \ No newline at end of file diff --git a/hdoc_to_basex/basex/xquery/searchDocByAuthor.hq b/hdoc_to_basex/basex/xquery/searchDocByAuthor.xqm similarity index 83% rename from hdoc_to_basex/basex/xquery/searchDocByAuthor.hq rename to hdoc_to_basex/basex/xquery/searchDocByAuthor.xqm index 895d2d10e345ccc8651ff8e23b144114690e6f48..495bed1344731a18fec76bd9aeb4b4ba90eec017 100644 --- a/hdoc_to_basex/basex/xquery/searchDocByAuthor.hq +++ b/hdoc_to_basex/basex/xquery/searchDocByAuthor.xqm @@ -4,7 +4,9 @@ (: For example, $name := 'Montangé', to search for documents whose author named Coutant:) (: Remark : case and accents in author's name have been taken care of :) -declare function local:searchDocByAuthor($name as xs:string, $docs as node()*) as node()* +module namespace myNs = "https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex"; + +declare function myNs:searchDocByAuthor($name as xs:string, $docs as node()*) as node()* { let $name_noAcc := translate($name, 'áàâäéèêëíìîïóòôöúùûüABCDEFGHIJKLMNOPQRSTUVWXYZ','aaaaeeeeiiiioooouuuuabcdefghijklmnopqrstuvwxyz') for $doc in $docs @@ -15,7 +17,4 @@ declare function local:searchDocByAuthor($name as xs:string, $docs as node()*) a where matches($author_noAcc, $name_noAcc) group by $titre (: Avoid duplications of documents by their titre:) return $doc -}; - -(: Example :) -local:searchDocByAuthor('Montangé', //document) \ No newline at end of file +}; \ No newline at end of file diff --git a/hdoc_to_basex/basex/xquery/searchDocByTitle.hq b/hdoc_to_basex/basex/xquery/searchDocByTitle.xqm similarity index 68% rename from hdoc_to_basex/basex/xquery/searchDocByTitle.hq rename to hdoc_to_basex/basex/xquery/searchDocByTitle.xqm index 3bcc420bfe9834f62c8839f98271cb20316651bd..de3582cd772c1d8d63e623718312d7ff04e8e9b0 100644 --- a/hdoc_to_basex/basex/xquery/searchDocByTitle.hq +++ b/hdoc_to_basex/basex/xquery/searchDocByTitle.xqm @@ -3,12 +3,11 @@ (: For example, $name := '^NF29_HdocEtherpad$', to search for an exact name:) (: For example, $name := 'NF29', to search for documents whose name contains 'NF29':) -declare function local:searchDocByTitle($name as xs:string, $docs as node()*) as node()* +module namespace myNs = "https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex"; + +declare function myNs:searchDocByTitle($name as xs:string, $docs as node()*) as node()* { for $doc in $docs where matches($doc/titre, $name, "i") return $doc -}; - -(: Example :) -local:searchDocByTitle('^NF29_HdocEtherpad$', //document) \ No newline at end of file +}; \ No newline at end of file diff --git a/hdoc_to_basex/basex/xquery/searchSectionByTitle.hq b/hdoc_to_basex/basex/xquery/searchSectionByTitle.xqm similarity index 82% rename from hdoc_to_basex/basex/xquery/searchSectionByTitle.hq rename to hdoc_to_basex/basex/xquery/searchSectionByTitle.xqm index edd071468855ab7f3ac0651d9d06b3baaf0d6208..ff588c05711539ef8bad8a1707246680b0e25c39 100644 --- a/hdoc_to_basex/basex/xquery/searchSectionByTitle.hq +++ b/hdoc_to_basex/basex/xquery/searchSectionByTitle.xqm @@ -4,7 +4,9 @@ (: For example, $keyword := 'Syntax', to search for sections whose titles containing "Syntax" :) (: Remark : case and accents in the keyword have been taken care of :) -declare function local:searchSectionByTitle($keyword as xs:string, $docs as node()*) as node()* +module namespace myNs = "https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex"; + +declare function myNs:searchSectionByTitle($keyword as xs:string, $docs as node()*) as node()* { let $keyword_noAcc := translate($keyword, 'áàâäéèêëíìîïóòôöúùûüABCDEFGHIJKLMNOPQRSTUVWXYZ','aaaaeeeeiiiioooouuuuabcdefghijklmnopqrstuvwxyz') for $doc in $docs @@ -13,7 +15,4 @@ declare function local:searchSectionByTitle($keyword as xs:string, $docs as node let $title_noAcc := translate($section/titresection, 'áàâäéèêëíìîïóòôöúùûüABCDEFGHIJKLMNOPQRSTUVWXYZ','aaaaeeeeiiiioooouuuuabcdefghijklmnopqrstuvwxyz') where matches($title_noAcc, $keyword_noAcc) return $section -}; - -(: Example :) -local:searchSectionByTitle('contenu', //document) \ No newline at end of file +}; \ No newline at end of file diff --git a/hdoc_to_elasticSearch/hdoc_to_elasticsearch.ant b/hdoc_to_elasticSearch/hdoc_to_elasticsearch.ant index aaf11e35420318750be13d0f6e09e37c685f158c..7d983cf2d64da0a47e5d6d2cc920a84292103f4d 100644 --- a/hdoc_to_elasticSearch/hdoc_to_elasticsearch.ant +++ b/hdoc_to_elasticSearch/hdoc_to_elasticsearch.ant @@ -1,37 +1,51 @@ + + + + + + + - + - - - - - - - - Entry file : ${hdocFileName} + Entry file : ${fileToParse} - - - - - - + + + + + + + + - - - - + + + + + + + + + + + + + + + + - + diff --git a/hdoc_to_elasticSearch/lib/ant-contrib.jar b/hdoc_to_elasticSearch/lib/ant-contrib-0.3.jar similarity index 100% rename from hdoc_to_elasticSearch/lib/ant-contrib.jar rename to hdoc_to_elasticSearch/lib/ant-contrib-0.3.jar diff --git a/hdoc_to_basex/basex/xquery/XQueryFunctions.hq b/hdoc_to_elasticSearch/logstash/input/.gitkeep similarity index 100% rename from hdoc_to_basex/basex/xquery/XQueryFunctions.hq rename to hdoc_to_elasticSearch/logstash/input/.gitkeep diff --git a/hdoc_to_elasticSearch/sample/result.hdoc b/hdoc_to_elasticSearch/sample/result.hdoc new file mode 100644 index 0000000000000000000000000000000000000000..b5a18bc4722843e5b7d1bc9c7699a56dcfb72e6b Binary files /dev/null and b/hdoc_to_elasticSearch/sample/result.hdoc differ diff --git a/hdoc_to_elasticSearch/input/sample.hdoc b/hdoc_to_elasticSearch/sample/sample.hdoc similarity index 100% rename from hdoc_to_elasticSearch/input/sample.hdoc rename to hdoc_to_elasticSearch/sample/sample.hdoc diff --git a/hdoc_to_elasticSearch/sample/sample01.hdoc b/hdoc_to_elasticSearch/sample/sample01.hdoc new file mode 100644 index 0000000000000000000000000000000000000000..4707fa1cff8c7fff96056a74b21dba028a3675ba Binary files /dev/null and b/hdoc_to_elasticSearch/sample/sample01.hdoc differ diff --git a/hdoc_to_elasticSearch/sample/sample02.hdoc b/hdoc_to_elasticSearch/sample/sample02.hdoc new file mode 100644 index 0000000000000000000000000000000000000000..acf60e7d10c03fbd6ef23528bdc87778ae3a7831 Binary files /dev/null and b/hdoc_to_elasticSearch/sample/sample02.hdoc differ diff --git a/hdoc_to_opale/xsl/transformation2.xsl b/hdoc_to_opale/xsl/transformation2.xsl index c63b0a1fdab4fb966d41974696acb69171beab3f..3c2009c84dcc2b614e59dd8674a214632abfe1c4 100644 --- a/hdoc_to_opale/xsl/transformation2.xsl +++ b/hdoc_to_opale/xsl/transformation2.xsl @@ -758,7 +758,7 @@ - + @@ -784,6 +784,15 @@ + + + + + + + + + diff --git a/opale_to_canoprof/README.md b/opale_to_canoprof/README.md new file mode 100644 index 0000000000000000000000000000000000000000..35836ad1a7743c7746e2593a378d879e65143aaa --- /dev/null +++ b/opale_to_canoprof/README.md @@ -0,0 +1,56 @@ +Liste des fonctions du convertisseur wikipedia_to_canoprof + + + +Une activité est composée de : +- Entete : + titre + Durée => Ne peut pas être renseignée à partir de wiki + organisation => Faisable + résumé => Concrètement le 1e paragraphe du wiki + Compétences du socle/ Notions et compétences/ métadonnées d'indexation => Correspond à quoi concrétement ? +- (Section | element)* +Les éléments sont : + *Information + *Attention + *Complément + *Conseil + *Définition + *Exemple + *Hypothèse + *Méthode + *Rappel + *Question avec corrigé masqué ou non + => Pas forcément utile dans le cas où les articles wikipédia ne comportent pas de QCM + + +Les sections sont composées : section(titre,element*) +*titre +*element + + +Chaque element est decoupé en : element(titre?,contenu) +Contenu est de la forme : + 1.Texte multimédia (paragraphe)* + paragraphe : + possibilité de mise en page + + + Citation (paragraphe) + Indice + Exposant + Liens Web (url,titre,description) -> Utilité de description ? + Lien vers activité = sc:uLink role="activity" + Lien vers média = sc:uLink role="media" + Illustration = + Inline image + Liste = puce ou ordonné + Tableau => A priori pas utile, parce qu'avec Wikipédia, ca sera texte + url + image c'est tout + Les tableaux seront sous forme d'image + + 2.Texte vis-à-vis = pas utile pour la transfo + 3.Zone de saisie élève , consigne élève, remarque professeur => pas utiles non plus + +Mise en relation hdoc // Canoprof + + \ No newline at end of file diff --git a/opale_to_canoprof/lib/ant-contrib.jar b/opale_to_canoprof/lib/ant-contrib.jar new file mode 100644 index 0000000000000000000000000000000000000000..062537661a514c2ce97d18948f4f25f7226cc1a0 Binary files /dev/null and b/opale_to_canoprof/lib/ant-contrib.jar differ diff --git a/opale_to_canoprof/lib/ant-launcher.jar b/opale_to_canoprof/lib/ant-launcher.jar new file mode 100644 index 0000000000000000000000000000000000000000..939abb57975f5ba08484e582f84ed3702d570a89 Binary files /dev/null and b/opale_to_canoprof/lib/ant-launcher.jar differ diff --git a/opale_to_canoprof/lib/ant.jar b/opale_to_canoprof/lib/ant.jar new file mode 100644 index 0000000000000000000000000000000000000000..7f5be4a4e05939429353a90e882846aeac72b976 Binary files /dev/null and b/opale_to_canoprof/lib/ant.jar differ diff --git a/opale_to_canoprof/lib/saxon9he.jar b/opale_to_canoprof/lib/saxon9he.jar new file mode 100644 index 0000000000000000000000000000000000000000..4e635175be11bc83187a2525f2a821bb85a1a566 Binary files /dev/null and b/opale_to_canoprof/lib/saxon9he.jar differ diff --git a/opale_to_canoprof/opale_to_canoprof.ant b/opale_to_canoprof/opale_to_canoprof.ant new file mode 100644 index 0000000000000000000000000000000000000000..4087e05b7b057c7466bf63a4e2e68768b498311c --- /dev/null +++ b/opale_to_canoprof/opale_to_canoprof.ant @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/opale_to_canoprof/opale_to_canoprof.properties b/opale_to_canoprof/opale_to_canoprof.properties new file mode 100644 index 0000000000000000000000000000000000000000..c0e957674e85b1187b83731d7d4650853c58d1fb --- /dev/null +++ b/opale_to_canoprof/opale_to_canoprof.properties @@ -0,0 +1,14 @@ +in = ${basedir}/input +out = ${basedir}/output +tmp = ${basedir}/tmp +xsl = ${basedir}/xsl +lib = ${basedir}/lib +log = ${basedir}/log + +opa_in = ../opale_to_hdoc/input +opa_out = ../opale_to_hdoc/output + +cano_in = ../hdoc_to_canoprof/input +cano_out = ../hdoc_to_canoprof/output + +rootfilename = content.xml \ No newline at end of file diff --git a/opale_to_elasticSearch/README.md b/opale_to_elasticSearch/README.md index 8ff0794e009bc2560532f6f4f679d0421071d430..5b2d77a05e1fd4ad3f0e4bc1c9a83ab9be6352e3 100644 --- a/opale_to_elasticSearch/README.md +++ b/opale_to_elasticSearch/README.md @@ -6,7 +6,7 @@ License GPL3.0 http://www.gnu.org/licenses/gpl-3.0.txt ## Credits ------------- -DELAUNAY Grégory +DELAUNAY Grégory KELLER Vincent ## Presentation @@ -22,8 +22,25 @@ Opale to ElasticSearch module extract data from an Opale file to use it with Ela ## User Story ------------- -"Vous disposez d'un ensemble de contenus Opale à votre disposition et vous aimeriez pouvoir l'analyser selon les différents types d'éléments possibles : cours, exercices, notions tout en permettant de trier par rapport aux différents sujets de ces dit contenus. -Pour se faire, vous mettrez les contenus que vous voulez analyser en input de opale_to_elasticSearch et vous lancerez le script lançant le fichier ANT. -Vous pourrez ensuite accéder à des graphiques Kibana à une adresse donnée et paramétrer vos graphiques afin d'obtenir les informations qui vous intéresse. +"Vous disposez d'un ensemble de contenus Opale à votre disposition et vous aimeriez pouvoir l'analyser selon les différents types d'éléments possibles : cours, exercices, notions tout en permettant de trier par rapport aux différents sujets de ces dit contenus. +Pour se faire, vous mettrez les contenus que vous voulez analyser en input de opale_to_elasticSearch et vous lancerez le script lançant le fichier ANT. +Vous pourrez ensuite accéder à des graphiques Kibana à une adresse donnée et paramétrer vos graphiques afin d'obtenir les informations qui vous intéresse. -A savoir que les contenus opale de plusieurs machines/utilisateurs peuvent être capitalisés car l'ensemble des instances de base elasticSearch installées forment un cluster accessible via l'interface Kibana" +A savoir que les contenus opale de plusieurs machines/utilisateurs peuvent être capitalisés car l'ensemble des instances de base elasticSearch installées forment un cluster accessible via l'interface Kibana" + +##Utilisation +------------- +L'utilisation complète d'opale_to_elasticSearch nécessite l'utilisation de la stack ELK (ElasticSearch, Logstash, Kibana). +- Télécharger ElasticSearch : https://www.elastic.co/fr/downloads/elasticsearch +- Télécharger Logstash : https://www.elastic.co/fr/downloads/logstash +- Télécharger Kibana : https://www.elastic.co/fr/downloads/kibana +- Télécharger le fichier de conf de Logstash : https://www.dropbox.com/s/lkz3dgmto2d378m/esconf.conf?dl=0 +- Mettre le fichier téléchargé dans %{dossier_installation_logstash}/ + +Etapes : +- aller dans votre dossier d'installation d'elasticsearch et lancer bin/elasticsearch +- aller dans votre dossier d'installation de kibana et lancer bin/kibana +- aller dans votre dossier d'installation de logstash et lancer bin/logstash - f esconf.conf +- lancer la transformation opale_to_elasticsearch en mettant d'abord les *.scar dans opale_to_elasticsearch/input +- Normalement les log de logstash indique l'insertion des sorties de la transformation, il arrive pour le moment qu'il ne le fasse qu'au moment où logstash s'arrête, l'arrêter alors. +- aller sur http://localhost:5601/app/kibana#/dashboard/NF29_DATA_DASHBOARD?_g=(filters%3A!()%2CrefreshInterval%3A(display%3AOff%2Cpause%3A!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow%2Fy%2Cmode%3Aquick%2Cto%3Anow%2Fy)) \ No newline at end of file diff --git a/opale_to_elasticSearch/build.properties b/opale_to_elasticSearch/build.properties new file mode 100644 index 0000000000000000000000000000000000000000..c9f5f3944c9203a16bfa929c0a0c1d4281d26efb --- /dev/null +++ b/opale_to_elasticSearch/build.properties @@ -0,0 +1,8 @@ +libdir=${basedir}/lib +xsldir=${basedir}/xsl +inputPath=${basedir}/input +outputPath=${basedir}/logstash/input +inputOpaleToHdoc=../opale_to_hdoc/input +outputOpaleToHdoc=../opale_to_hdoc/output +inputHdocToElasticSearch=../hdoc_to_elasticSearch/input +outputHdocToElasticSearch=../hdoc_to_elasticSearch/output \ No newline at end of file diff --git a/opale_to_elasticSearch/lib/ant-contrib-0.3.jar b/opale_to_elasticSearch/lib/ant-contrib-0.3.jar new file mode 100644 index 0000000000000000000000000000000000000000..062537661a514c2ce97d18948f4f25f7226cc1a0 Binary files /dev/null and b/opale_to_elasticSearch/lib/ant-contrib-0.3.jar differ diff --git a/opale_to_elasticSearch/lib/ant-launcher.jar b/opale_to_elasticSearch/lib/ant-launcher.jar new file mode 100644 index 0000000000000000000000000000000000000000..939abb57975f5ba08484e582f84ed3702d570a89 Binary files /dev/null and b/opale_to_elasticSearch/lib/ant-launcher.jar differ diff --git a/opale_to_elasticSearch/lib/ant.jar b/opale_to_elasticSearch/lib/ant.jar new file mode 100644 index 0000000000000000000000000000000000000000..7f5be4a4e05939429353a90e882846aeac72b976 Binary files /dev/null and b/opale_to_elasticSearch/lib/ant.jar differ diff --git a/opale_to_elasticSearch/lib/saxon9he.jar b/opale_to_elasticSearch/lib/saxon9he.jar new file mode 100644 index 0000000000000000000000000000000000000000..4e635175be11bc83187a2525f2a821bb85a1a566 Binary files /dev/null and b/opale_to_elasticSearch/lib/saxon9he.jar differ diff --git a/opale_to_elasticSearch/logstash/input/.gitkeep b/opale_to_elasticSearch/logstash/input/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/opale_to_elasticSearch/opale_to_elasticsearch.ant b/opale_to_elasticSearch/opale_to_elasticsearch.ant new file mode 100644 index 0000000000000000000000000000000000000000..51e2eecaf42a9c0446d441ace1ddde81083259f0 --- /dev/null +++ b/opale_to_elasticSearch/opale_to_elasticsearch.ant @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/opale_to_elasticSearch/run.bat b/opale_to_elasticSearch/run.bat new file mode 100644 index 0000000000000000000000000000000000000000..3d472dab4952f7ac4b3981d39e9ce3ef378eb466 --- /dev/null +++ b/opale_to_elasticSearch/run.bat @@ -0,0 +1,11 @@ +@echo off +set lib=lib +set ant=opale_to_elasticsearch.ant +set antparam=-Dprogram.param=%1 + +set scJarList=%lib%\* + +java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam% +pause + +REM start /MIN java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam% diff --git a/opale_to_elasticSearch/run.sh b/opale_to_elasticSearch/run.sh new file mode 100644 index 0000000000000000000000000000000000000000..787f3e7a53032aff227ebad1fad46613a6355ec1 --- /dev/null +++ b/opale_to_elasticSearch/run.sh @@ -0,0 +1,35 @@ +#!/bin/sh +lib="lib" +ant="opale_to_elasticsearch.ant" +antparam="-Dprogram.param=$1" + +#Recherche de java et controle que se soit une version SUN +vJavaCmd="java" +xCheckJava () { + vInputVarName=\$"$1" + vInputVarVal=`eval "expr \"$vInputVarName\" "` + if [ -z "$vInputVarVal" ];then + eval "$1=false" + return + fi + vSunJavaFound=`$vInputVarVal -version 2>&1 | grep -Eo -m 1 "(HotSpot)|(OpenJDK)"` + if [ "$vSunJavaFound" != "HotSpot" ] && [ "$vSunJavaFound" != "OpenJDK" ] ; then + eval "$1=false" + return + fi +} +xCheckJava vJavaCmd +if [ "$vJavaCmd" = "false" ]; then + vJavaCmd="$JAVA_HOME/bin/java" + xCheckJava vJavaCmd + if [ "$vJavaCmd" = "false" ]; then + echo "ERREUR: JRE de SUN introuvable. Veuillez déclarer la variable d'environnement JAVA_HOME." + exit 1 + fi +fi + +#Lancer la commande +scJarList="$lib/*" + + +$vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam diff --git a/opale_to_elasticSearch/sample/es-1_2017-1-4.scar b/opale_to_elasticSearch/sample/es-1_2017-1-4.scar new file mode 100644 index 0000000000000000000000000000000000000000..5498a7537bec657f4ea407e9c634764117f8fadd Binary files /dev/null and b/opale_to_elasticSearch/sample/es-1_2017-1-4.scar differ