|
||||||||
FRAMES NO FRAMES |
The command line processor sacl
XML analysis task specifications
Examples
Based on an XML interface, Synop Analyzer can be used as an analysis kernel within automated workflows or batch processes, or as a plugin component embedded into third-party software. To that purpose, the Synop Analyzer command line processor (sacl.bat
) can be used. It processes an analysis task - submitted in the form of an XML document - without user interaction.
sacl.bat
can take 1 or 2 command line parameters:
http://www.synop-systems.com?/xml/InteractiveAnalyzerTask.xsd
,
http://www.synop-systems.com?/xml/InteractiveAnalyzerPreferences.xsd
.
The result of calling the command line processor can either be a transformed version of the input data or an analysis result in the form of a report (HTML or PDF), a spreadsheet (.xlsx) with tabular and graphical information, a data table or a data mining model. The following picture shows this schematically:
XML tasks according to the XML schema http://www.synop-systems.com?/xml/InteractiveAnalyzerTask.xsd
are described in detail in The Synop Analyzer XML Application Programming Interface.
A simple task, which reads the flat file
<InteractiveAnalyzerTask>
<InputData>
<InputDataLocator usage="DATA_SOURCE" type="FLAT_FILE"
name="doc/sample_data/kunden.txt"/>
</InputData>
<UnivariateExplorationTask nbChartsPerRow="3">
<ResultDataLocator usage="IA_REPORT" type="OOXML_SPREADSHEET"
name="doc/sample_data/kunden_stat.xlsx"/>
</UnivariateExplorationTask>
</InteractiveAnalyzerTask>
If you store this task as sacl kunden_task1.xml
, then you can call
You could also submit the XML task directly as a textual string when calling
<InputData><InputDataLocator usage=\"DATA_SOURCE\" type=\"FLAT_FILE\"
name=\"doc/sample_data/kunden.txt\"/></InputData>
<UnivariateExplorationTask nbChartsPerRow=\"3\">
<ResultDataLocator usage=\"IA_REPORT\" type=\"OOXML_SPREADSHEET\"
name=\"doc/sample_data/kunden_stat.xlsx\"/></UnivariateExplorationTask>
</InteractiveAnalyzerTask>"