Giter Site home page Giter Site logo

datagram-db / similarityflooding-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kientuong114/similarityflooding

0.0 0.0 0.0 1.17 MB

Python3 implementation of the Similarity Flooding algorithm (S. Melnik, H. Garcia-Molina, E. Rahm "Similarity Flooding: A Versatile Graph Matching Algorithm")

License: GNU General Public License v3.0

Python 59.18% TeX 40.82%

similarityflooding-python's Introduction

Similarity Flooding

Python3 implementation of the Similarity Flooding algorithm (S. Melnik, H. Garcia-Molina, E. Rahm "Similarity Flooding: A Versatile Graph Matching Algorithm")

Table of Contents

  1. Project Description
  2. Installation
  3. Usage
  4. Credits

Project Description

The project implements the Similarity Flooding algorithm as explained in the paper "Similarity Flooding: A Versatile Graph Matching Algorithm", by S. Melnik, H Garcia-Molina and E. Rahm. The implementation is written in Python3, relying mostly on the NetworkX library to easily create the necessary graphs.

The project is separated in various modules that should be imported separately, for additional information refer to the Usage section.

This work has been done for the "Progetto di Ingegneria Informatica" course (Computer Engineering Project) in Politecnico di Milano.

Installation

Python3 is required to run the project, please refer to the Python website for additional information on how to install Python.

It is advised to use Pipenv to manage the project dependencies:

If you do not have Pipenv installed:

$ pip install pipenv

After installing pipenv, move to the project directory and install the required dependencies:

$ cd SimilarityFlooding
$ pipenv install

You should now be able to run the main.py file:

$ pipenv run python3 main.py

Usage

The modules contained in the top level package similarityflooding are the following:

  • parse: contains all parser for various schema formats (Namely: SQL DDL, XML and XDR)
  • initialmap: contains the modules required to compute the initial mapping for the algorithm
  • sf: contains the modules required for the actual similarity flooding computation
  • filter: contains the modules required to compute the final results
  • utils: contains various modules useful to the entire project

In general the flow is the following:

  • Choose a parse module to receive a graph from the desired schema format
  • Eventually compress the graph (see the report for additional information)
  • Create a SFGraphs object
  • Run the similarity flooding algorithm by providing the SFGraphs object
  • Execute the final filter

For an example usage, please refer to the main.py file.

Credits

similarityflooding-python's People

Contributors

kientuong114 avatar stefandjokovic 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.