This is the README file for Samples-Aviation. The end of the file has setup instructions for installing the sample using zpm or plain ObjectScript.
Use or operation of this code is subject to acceptance of the license available in the code repository for this code.
Samples-Aviation provides sample data for use in exploring InterSystems IRIS Text Analytics capabilities. In order to use this sample, you must have an InterSystems IRIS license that includes these capabilities.
After setup, the data is available for use in various ways:
- For use in InterSystems IRIS Natural Language Processing. The repo also contains specific samples related to NLP.
- For use with InterSystems IRIS SQL Search.
- For use with Text Analytics options in InterSystems IRIS Business Intelligence.
The repo also contains specific samples related to these options.
Data and utility classes
Aviation.Eventclasses are persistent classes/tables that collectively represent a selected subset of aviation incidents reported to the U.S. National Transportation Safety Board. The dataset provided in this sample demo is only a small subset of the full NTSB dataset, which is available from http://www.ntsb.gov. This data is supplied here for demonstration purposes only and neither intended nor warranted to be accurate. (Courtesy: National Transportation Safety Board)
Upon setup (see end), data is loaded from the
src/gbl/aviation-data.xmlfile into these classes.
Aviation.Utilsclass is a helper classes used by the repo setup routine (see end).
Samples using InterSystems IRIS Natural Language Processing (NLP)
Aviation.ReportDomainclass defines a sample NLP domain based on the data from this repo. You can run NLP queries against this domain. See Using InterSystems IRIS Natural Language Processing.
Aviation.Classification.Utilsclass illustrates how to build and test Text Categorization models programmatically. See Text Categorization.
The InterSystems IRIS Natural Language Processing technology is also available for standalone use. Click here to learn more.
Samples using InterSystems IRIS Business Intelligence (BI)
Aviation.Cubespackage contains BI cube definitions that use Text Analytics features and that use the data in this repo. See Using Text Analytics in Cubes for details.
Aviation.KPI.TopConceptscontains a BI KPI that uses a Text Analytics query.
Aviation.KPI.Actionsdefines a KPI action (which is used on a dashboard also in this sample).
Aviation.DashboardsEtcdefines Business Intelligence pivot tables and dashboards that display the data in this repo and that provide you the ability of performing simple analyses of that data.
Installation with ZPM
- Install ZPM Get the latest release of the ZPM client from https://pm.community.intersystems.com/packages/zpm/latest/installer
You can download it as a regular ObjectScript package in XML, so it can be installed by the class import feature in the Management Portal, or using the terminal:
USER> Do $System.OBJ.Load("/yourpath/zpm.xml","ck")
Click here to learn more about ZPM.
- After setting up ZPM, install the Samples-Aviation module. You'll need an Internet connection for this:
zpm:USER> install samples-aviation
Clone or download the repository.
On Windows, you can use the Download button or you can automatically download the archive file. Once downloaded, open and save the contents of the archive file.
On UNIX or Linux, create a directory called "samples", and then enter the following from the shell:
wget -qO- https://github.com/intersystems/Samples-Aviation/archive/master.tar.gz | tar xvz -C samples
In the InterSystems IRIS Management Portal, create a namespace called SAMPLES. You will load the sample data into this namespace. If you need help creating the namespace, see Creating a Namespace and Database to Hold Samples.
To enable the SAMPLES web application for use with InterSystems IRIS Analytics: a. In the Management Portal, click System Administration > Security > Applications > Web Applications. b. Click the
/csp/sampleslink in the leftmost column. This assumes that the namespace you created is called SAMPLES. c. In the Enable section, select Analytics. d. Click Save.
Open the InterSystems IRIS Terminal. If you used the default SYSTEM account when installing InterSystems IRIS, the username is _system.
Enter the following command, where SAMPLES is the namespace where the sample will be loaded:
Enter the following command, replacing install-dir with the location where you downloaded the repo:
Enter the following command:
When prompted, enter the full path of the directory that contains the README.md and LICENSE files of the repo you downloaded. The method then loads and compiles the code and performs other needed setup steps.