Home Applications iris-dataset-titanic

iris-dataset-titanic

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
5
1 reviews
0
Awards
499
Views
42
IPM installs
3
0
Details
Releases (1)
Reviews (1)
Issues
Articles (1)
Titanic passengers dataset in InterSystems IRIS. Could be imported as ZPM too

What's new in this version

Initial Release

iris-dataset-titanic

Quality Gate Status

This repository contains a class and data of Titanic passengers in a Global

Dataset Source and license

The dataset is taken from kaggle
License - CC0 Public Domain

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

zpm “install dataset-titanic”

Development

Clone/git pull the repo into any local directory

$ git clone https://github.com/intersystems-community/objectscript-docker-template.git

Open the terminal in this directory and run:

$ docker-compose up -d

How to Test it

In IRIS terminal:

$ docker-compose exec iris iris session iris
USER>D $System.SQL.Shell()
[SQL]USER>>Select * from dc_data.Titanic
...
890     890     1       1       Behr, Mr. Karl Howell   male    26      0       0       111369  30       C148    C
891     891     0       3       Dooley, Mr. Patrick     male    32      0       0       370376  7.75             Q

891 Rows(s) Affected
statement prepare time(s)/globals/cmds/disk: 0.2047s/51607/268016/0ms
execute time(s)/globals/cmds/disk: 0.1058s/892/161300/0ms
cached query class: %sqlcq.USER.cls8

In InterSystems SQL Tools in VSCode

Open repo in VSCode (see develoment above)
Install InterSystems SQLTools

Use the connection “iris-dataset-titanic”

Open dc.data.Titanic table and see the records:
Screenshot 2021-01-21 at 13 33 53

How to start coding

This repository is ready to code in VSCode with ObjectScript plugin.
Install VSCode, Docker and ObjectScript plugin and open the folder in VSCode.
Open /src/cls/PackageSample/ObjectScript.cls class and try to make changes - it will be compiled in running IRIS docker container.
docker_compose

Feel free to delete PackageSample folder and place your ObjectScript classes in a form
/src/Package/Classname.cls
Read more about folder setup for InterSystems ObjectScript

The script in Installer.cls will import everything you place under /src into IRIS.

Made with
Install
zpm install dataset-titanic download archive
Version
1.0.002 Apr, 2021
Category
Technology Example
Works with
InterSystems IRISInterSystems IRIS for Health
First published
21 Jan, 2021
Last edited
02 Apr, 2021
Last checked by moderator
25 Aug, 2024Works