Skip to content

Repository with Post data from community.intersystems.com data to solve posts and tags issue in InterSystems AI programming Contest

License

Notifications You must be signed in to change notification settings

intersystems-community/posts-and-tags

Repository files navigation

Developer Community posts and tags

This is a repository for InterSystems AI contest with data on Posts and Tags exported from InterSystems Developer Community

License

This database of InterSystems Developer Community posts and tags is made available under the Public Domain Dedication and License v1.0 whose full text can be found at: http://opendatacommons.org/licenses/pddl/1.0/

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

Clone/git pull the repo into any local directory

$ git clone https://github.com/intersystems-community/posts-and-tags.git

Open the terminal in this directory and run:

$ docker-compose build
  1. Run the IRIS container with your project:
$ docker-compose up -d

How to Test it

Open IRIS terminal:

$ docker-compose exec iris iris session iris
PYTHON>write ##class(PackageSample.ObjectScript).Test()

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.

Use csvgen to load the data from CSV.

What's inside the repository

Content

PythonGateway

Python Gateway for InterSystems Data Platforms. Execute Python code and more from InterSystems IRIS. This projects brings you the power of Python right into your InterSystems IRIS environment:

  • Execute arbitrary Python code
  • Seamlessly transfer data from InterSystems IRIS into Python
  • Build intelligent Interoperability business processes with Python Interoperability Adapter
  • Save, examine, modify and restore Python context from InterSystems IRIS

Readme. Articles.

PythonGatewaySamples / MLToolkit Experience Lab

Examples of PythonGateway usage. Readme. If you're just starting follow the tutorial at:

http://localhost:52773/csp/user/index.html

Where 52773 is a container web port.

Community Posts Dataset

SQL Query Examples

Get Posts

SELECT * FROM Community.Post

Get Tags

SELECT * FROM Community.Tag

Get Posts for the tag Tag

E.g. here all the posts with tag 'RERST API'

SELECT * FROM Community.Post WHERE $LISTFIND($LISTFROMSTRING(Tags, ','), 'REST API') != 0

DevOps

Dockerfile

The simplest dockerfile which starts IRIS and imports Installer.cls and then runs the Installer.setup method, which creates IRISAPP Namespace and imports ObjectScript code from /src folder into it. Use the related docker-compose.yml to easily setup additional parametes like port number and where you map keys and host folders. Use .env/ file to adjust the dockerfile being used in docker-compose.

.vscode/settings.json

Settings file to let you immedietly code in VSCode with VSCode ObjectScript plugin)

.vscode/launch.json

Config file if you want to debug with VSCode ObjectScript

Read about all the files in this artilce

About

Repository with Post data from community.intersystems.com data to solve posts and tags issue in InterSystems AI programming Contest

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •