Sign in

Follow for projects and lessons on graph technology (with TigerGraph), VR, AI, and more! Connect with me: https://www.linkedin.com/in/shreya-chaudhary-

A Step-By-Step Walkthrough of my 2020 Congressional App Challenge Winning App

What is the Congressional App Challenge?

Every year, there is an annual competition offered by the Capitol called the Congressional App Challenge (CAC). Each House of Representative member receives several app submissions, and they select the best app for the winning team to showcase at Washington DC. Unfortunately, due to the pandemic this year, the trip to DC was cancelled, but I got the opportunity to present my project online.

So, without further ado, here’s a walkthrough of my project from this year.

Objective

The goal of my project was to create a “Smart Journal.” I wanted it to be a place to analyse one’s emotions over…


An Example of How I Applied TigerGraph to a School Event

Context

Every year, the juniors from my school host a massive Valentine’s Day fundraiser for prom. This year, however, due to the pandemic, we had to make our fundraiser online, selling two items: entertainment grams and card grams. (During the event itself though, we ended up being hybrid.) Instead of funding prom, all the money was donated to the Leukemia and Lymphoma Society. The cards were to be delivered directly to each student, and the entertainment grams needed to be organised by grade for the deliverers.

Data

Therefore, to start, we created a Google Forms for students to pick what they want…


Creación de un chatbot para responder preguntas de TigerGraph con Discord.py y pyTigerGraph.

¿Qué es este proyecto y por qué llevarlo a cabo?

Un tema potencialmente candente es la creación de chatbots con tecnología de gráficos. Si bien esto no es de ninguna manera un chatbot avanzado, es una forma de combinar el poder de TigerGraph y Discord para crear un bot receptivo para un servidor de Discord.

Paso I: Crea el Bot en Discord

Primero, necesitas crear el bot en Discord. Para este proyecto, usaremos Discord.py. Para crear bots, necesitarás una cuenta de Discord y habilitar el modo de desarrollador. Entonces deberías poder acceder a la página de aplicaciones: https://discord.com/developers/applications.

Desde aquí, en la esquina superior derecha, haz clic en “Nueva aplicación”:


A Step-by-Step Microblog on Generating Secrets in TigerGraph

Photo from Unsplash by Stefan Steinbauer

What is a Secret?

In TigerGraph, a secret is a unique code that allows outside scripts to interact with your graph. Several TigerGraph tools might ask you for it, but generating a secret itself can be tricky.

Step I: Start Your Solution

If you haven’t already created or started your solution, you will need to do so. Here are the steps on how to do this:

  1. Create an account at https://tgcloud.io.
  2. Go to https://tgcloud.io/app/solutions.
  3. Create a solution (if you have not already).
  4. If you have created a solution, make sure it has started. If it’s off, go to Solution Operations > Start.
  5. Wait for the solution to say “Ready”…


Creating a Chat Bot to Answer TigerGraph Questions with Discord.py and pyTigerGraph

What is the Project and Why Complete it?

A potentially hot topic is creating chat bots with graph technology. While this is by no means an advanced chat bot, it’s a way to combine the power of TigerGraph and Discord to create a responsive bot for a Discord server.

Step I: Create the Bot on Discord

First, you need to create the bot itself on Discord. For this project, we’ll be using Discord.py. To create bots, you’ll need a Discord account and to enable Developer Mode. You should then be able to access the applications page: https://discord.com/developers/applications

From here, on the top right corner, click “New Application.”

Click on the blue “New Application” button.

Next, name your application at the prompt.


A Holiday Special and Introduction to a-frame

Objective

We are in the midst of the holidays and yet we are forced in our houses due to the pandemic. However, this year, I decided to start a new tradition: I created a VR card. While it’s far from being a place for interaction, like the Oasis or your choice of science-fiction universe, it’s been a nice way to create something small to share with my friends and family.

In this lesson, I’ll introduce the basics of a-frame to create a simple, in-browser holiday “winter wonderland” card using only primitive types (and text). …


Image from Pixabay

Introduction to Beautiful Soup and Web Scraping

Objective

This blog will serve as an introduction to web scraping using Beautiful Soup. We will extract textual data from Wikipedia, and create a mini “Google” in which a user can ask for something and the result will be a paragraph-long description about the item searched.

Note that this is by no means a final product; rather, it’s an introduction to basic webscraping. Let’s begin!

Step 1: Import Libraries

First, we’ll need to import our libraries. The two libraries we’ll be using are BeautifulSoup4 to parse the HTML and requests to extract text from a website (which is, in our case, Wikipedia).

from bs4 import…


Photo from Unsplash by Janis Fasel

How to Run a Linear Regression using Pokémon Data from a Graph in TigerGraph

(Note: This is a bonus blog based on a series. To obtain the data used, refer to the past blogs.)

Hello! Today, we’re going to learn how to run a linear regression using TigerGraph. In this example, we’ll be running a linear regression with the Pokémon’s height and weight. Let’s get to it!

Part I: Setup

To start, we’re going to need to import the necessary libraries and create a connection to our graph.

The libraries we’ll be using are pyTigerGraph, Plotly Express, and Pandas. You can import them using the following:

import pyTigerGraph as tgimport plotly.express as pximport pandas as…


Image from Pixabay by Vinson Tan

How to Write Basic GSQL Commands

(Note: This is Part 3 of a series. Check out the past blog to load the data into your database: https://towardsdatascience.com/pok%C3%A9mon-lab-part-ii-adding-more-data-90cddd65ec46!)

Now that you have your data loaded, the next big step will be catching them all and extracting relevant information from your graph using queries. This blog will be using TigerGraph’s query language called GSQL.

Queries will help you extract meaningful results from the data. By now, you should have a lot of data in your graph; the major question is what you should do with the data? How can you manipulate your data to accomplish some sort of…


Photo from Unsplash by Gerd Altmann

Adding to the Schema and Adding More Data

(Note: This is a Part II of a series. Please check out Part I here: https://towardsdatascience.com/using-api-data-with-tigergraph-ef98cc9293d3)

In the last blog, we learned how to upsert API data into a graph for a basic schema. Now, we’re going to go deeper, making a more complex schema and adding more data.

The past blog was a proof-of-concept for loading API data into a graph in TigerGraph, and that graph only had two vertices connected with one edge. Contrary to the past blog which focused on loading data from an API, this blog will focus on creating a graph that will be more…

Shreya Chaudhary

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store