Commit 04bbc388 authored by Neveux Anais's avatar Neveux Anais

Merge branch 'master' of gitlab.utc.fr:crozatst/hdoc

parents 4bd2001d c7b0dc42
...@@ -31,21 +31,22 @@ This project can be used alone if you want to import an HDOC file into basex. ...@@ -31,21 +31,22 @@ This project can be used alone if you want to import an HDOC file into basex.
- User can get examples whose titles contain a keyword - User can get examples whose titles contain a keyword
Step by step : Step by step :
[Step 1 : File transformation]
[`Step 1 : File transformation`]
- Put the files .hdoc you want to deal with in the folder [input](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex/input) - Put the files .hdoc you want to deal with in the folder [input](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex/input)
- Run the transformation progam (Win : double click run.bat, Linux : execute run.sh) - Run the transformation progam (Win : double click run.bat, Linux : execute run.sh)
- This transformation includes : - This transformation includes :
* Title, authors, keywords * Title, authors, keywords
* First Level section : title, type * First Level section : title, type
[Step 2 : Create data base in basex] [`Step 2 : Create data base in basex`]
- Download and install [BaseX](http://basex.org/products/download/all-downloads/) - Download and install [BaseX](http://basex.org/products/download/all-downloads/)
- Run BasexGui - Run BasexGui
- In the Text Editor of BaseX, open the command script "createbd.bxs" in folder [`basex/command`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex/basex/command). - In the Text Editor of BaseX, open the command script "createbd.bxs" in folder [`command`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_basex/basex/command).
Follow the instructions in the script, and then execute it. Follow the instructions in the script, and then execute it.
[Step 3 : Make XQuery request] [`Step 3 : Make XQuery request`]
- 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). - In the Text Editor of BaseX, you can open and execute xquery script "main.xq" in folder [`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 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 - .xqm files are library modules where we have defined functions, we can go to these files for more detailed using instructions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment