Coder Social home page Coder Social logo

yelp-faceted-search's Introduction

Yelp Faceted Search

A data analysis application for performing faceted search on Yelp's business review data.

Here is a demo for searching delis in Las Vegas: Demo

Overview

This project is a standalone Java application for running queries on a real Yelp dataset. The dataset used is a subset of the one used in the 2013 "Yelp Dataset Challenge," containing 20,544 businesses, 211,002 users, and 826,190 reviews. Users can search for businesses based on business categories (main & sub-categories), business attributes (e.g. accepts credit cards, has delivery, etc.), location, and days/hours open. Each query returns matched businesses and allows the user to view all the reviews for each business.

The application utilizes faceted search, which is a popular technique in commercial search applications. It is a technique for accessing information organized according to a faceted classification system, allowing users to explore a collection of information by applying multiple filters.

The emphasis for this project is on the database infrastructure, not on the user interface design. This project was built using NetBeans.

Run

Extract the Yelp dataset:

$ cd YelpGUI
$ tar -xvzf YelpDataset.tar.gz

Bring up the Oracle database:

$ docker run --name oracledb --rm -d -p 1521:1521 epiclabs/docker-oracle-xe-11g

Initialize the database with the necessary tables/indices (default username/pw is system/oracle):

$ sqlplus ${user}/${pass} @createdb.sql
$ sqlplus ${user}/${pass} @createIndex.sql

Populate the database with the Yelp dataset (Warning: this may take about 20 mins):

$ javac -cp "./dist/lib/ojdbc.jar:./dist/lib/json-20190722.jar" src/yelp/populate.java
$ java src.yelp.populate

Run the GUI:

$ java -jar dist/YelpGUI.jar

Delete the database:

$ sqlplus ${user}/${pass} @dropdb.sql
$ docker kill oracledb

yelp-faceted-search's People

Contributors

cdesiniotis avatar

Watchers

 avatar  avatar

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.