Eno is a tool that generates survey questionnaires starting from their formal description in DDI.
Due to its modular design, Eno can create questionnaires in different formats from the same DDI description. Currently, Eno generates XForms web questionnaires that can be executed on Orbeon Forms Runner. PDF questionnaires is under development.
This project uses the prior Eno architecture of folders from the ENO GitHub Project v1.0.0 and performs the same actions within a REST Web Service.
The generation of XForms forms is performed using a number of XSLT transformations from a DDI input file that is sent to the main URL of the service.
The main URL to call (POST) is http://localhost:8080/eno-ws/api/eno/ddi2xforms and takes one arguments in the body :
The response element will contain the result of the process, which can be:
Others endpoints (working progress) :
http://localhost:8080/eno-ws/api/eno/ddi2fo
http://localhost:8080/eno-ws/api/eno/ddi2pdf
A dependency to eno-core is required from maven central or from a local build of eno-core.
Subsequently, those additional steps are required in order to build eno:
git pull https://github.com/InseeFr/Eno.git
pushd Eno
mvn install && mvn install -DskipTests && mvn install:install-file -Dfile=target/eno-core-1.0.0.jar -DgroupId=fr.insee -DartifactId=eno-core -Dversion=1.0.0 -Dpackaging=jar
popd
The first build of the project must be a maven clean install skipping tests. This will download the pom.xml dependencies to initialize the project:
After this first build and having the application running on your container, you should be able to perform unit tests by building the project without skipping tests.
curl -X POST "http://localhost:8080/api/eno/ddi2xforms" -H "accept: application/xml" -H "content-type: application/xml" -d "<?xml version=\"1.0\" encoding=\"UTF-8\"?><DDIInstance .... </DDIInstance>"
The main URL to call is http://localhost:8080/eno-ws
In the Eno project resources, you can find an example of a questionnaire (specified in the DDI format) named simpsons.xml
DDI example : DDI Simpsons Questionnaire XForms expected : [XForms Simpsons Questionnaire] (https://github.com/InseeFr/Eno/blob/master/questionnaires/simpsons/xforms/v1/simpsons-form.xhtml)
Content type
Image
Digest
Size
120.7 MB
Last updated
about 7 years ago
docker pull estragonthecat/eno-ws