Giter Club home page Giter Club logo

samples-aviation's Introduction

Samples-Aviation

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:

The repo also contains specific samples related to these options.

Repo contents

Data and utility classes

  • The Aviation.Aircraft, Aviation.Crew, and Aviation.Event classes 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.xml file into these classes.

  • The Aviation.Utils class is a helper classes used by the repo setup routine (see end).

Samples using InterSystems IRIS Natural Language Processing (NLP)

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)

  • The Aviation.Cubes package 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.TopConcepts contains a BI KPI that uses a Text Analytics query.
  • Aviation.KPI.Actions defines a KPI action (which is used on a dashboard also in this sample).
  • Aviation.DashboardsEtc defines 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.

Setup instructions

Installation with ZPM

  1. 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.

  1. After setting up ZPM, install the Samples-Aviation module. You'll need an Internet connection for this:
zpm:USER> install samples-aviation

Classic installation

  1. 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  
  2. 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.

  3. 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/samples link in the leftmost column. This assumes that the namespace you created is called SAMPLES. c. In the Enable section, select Analytics. d. Click Save.

  4. Open the InterSystems IRIS Terminal. If you used the default SYSTEM account when installing InterSystems IRIS, the username is _system.

  5. Enter the following command, where SAMPLES is the namespace where the sample will be loaded:

    ZN "SAMPLES"
  6. Enter the following command, replacing install-dir with the location where you downloaded the repo:

    do $system.OBJ.Load("install-dir\buildsample\Build.AviationSample.cls","ck")
  7. Enter the following command:

    do ##class(Build.AviationSample).Build()
  8. 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.

samples-aviation's People

Contributors

bdeboe avatar evshvarov avatar isc-burstein avatar isc-kdawn avatar lexiisc avatar mgoldenisc avatar r-cemper avatar sergeymi37 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samples-aviation's Issues

Data for aircraft an crew tables is stored twice

It struck me that the data for the aircraft and crew tables is no longer accessed in its original ^Aircraft.***D global, but now part of the sub-node storage for the main ^Aircraft.EventD global. However, the original globals are still there.

This wasn't the case in the original C/E example, which had one-to-many relationships, which may be a better fit.

Fix the settings.json parameters

I can't create a PR or a branch, but the settings.json file needs to be updated.

This code will fix the connection issue when installing via github.

`{
"files.associations": {

"Dockerfile*": "dockerfile",
"iris.script": "objectscript"

},
"objectscript.conn" :{
"ns": "USER",
"active": true,
"username": "_SYSTEM",
"password": "SYS",
"docker-compose": {
"service": "iris",
"internalPort": 52773
},
"links": {
"SAMPLES BI in ZEN": "http://localhost:${port}/csp/irisapp/_DeepSee.UserPortal.Home.zen"
}
}

}`

error during installation zpm

zpm "install samples-aviation"
[samples-aviation] Reload START
[samples-aviation] Reload FAILURE - ОШИБКА #5012: Файл 'D:\InterSystems\IRISPY\mgr.modules\SAMPLESAVIATION\samples-aviation\1.0.0\src\gbl\Aviation.AircraftD.xml' не существует
ОШИБКА #5012: Файл 'D:\InterSystems\IRISPY\mgr.modules\SAMPLESAVIATION\samples-aviation\1.0.0\src\gbl\Aviation.AircraftD.xml' не существует
ОШИБКА #5012: Файл 'D:\InterSystems\IRISPY\mgr.modules\SAMPLESAVIATION\samples-aviation\1.0.0\src\gbl\Aviation.AircraftD.xml' не существует

Instructions unclear

download/install instructions says 'download the repo and uncompress it'. It's unclear what is meant by this. a regular git workflow is to clone a repository, no uncompressing necessary

formatting for instructions

Hi,

for the download/install instructions, can we use regular markdown to mark code sections? it would make it clearer what is code and what isn't. i.e. for step one:

git clone https://github.com/intersystems/Samples-Aviation.git

package seems to be massively broken

it's not just an issue of IRIS or Dockercompiose versions.

  • the requirement of a special license turns up during installation.
  • cube building is somewhere
  • no prepared example
  • I will not review it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.