Git Product home page Git Product logo

graphsampling's Introduction

Graph Sampling

This repository covers the analysis of our Graph Sampling method, and the scripts to run the SampLD pipeline. ###Dependencies

  • PIG[1]
  • Hadoop[2]
  • Python[3]
  • PigAnalysis[4]: a collection of PIG scripts (wrapped as python scripts) we execute in our sampling pipeline. Check their README for more documentation on how to configure these scripts, and which dependencies this project has
  • GiraphAnalysis[5]: the giraph codebase to execute network analysis algorithms using map-reduce. Check their README for more documentation for more information on how to run giraph, and which dependencies this project has

###How it works

  1. We rewrite an RDF graph to an unlabelled graph, in order to apply regular network analysis algorithms. We support different rewrite methods, as the applicable rewrite method may depend on the dataset properties or sampling requirements
  2. We analyze the rewritten graph using a set of network analysis algorithms. Again, we support different analysis algorithms, as the quality of the sample may differ depending on the algorithm, network structure, and sampling requirements
  3. We aggregate the results from the previous step back to RDF (i.e. triples). We assign weights to each triple, by aggregating the node weights calculated in the previous step. Based on this ranking, we select create the smaller sample

###Getting started The following steps will result in a number of different samples (half the size of the original graph). All possible rewrite methods and algorithms are used.

  1. Initialize the hadoop directory structure by running initHadoopDataset <datasetId>
  2. Add an RDF file (in ntriple format) to your hadoop file system. Filename: ~/<datasetId>/<datasetId>.nt
  3. Run bin/runAll.sh <ntriple-file>, to run the pipeline, and create the weighted set of triples from which you can select your sample note: this command depends on the PigAnalysis and GiraphAnalysis codebase. Make sure that both this current repository, and these other repositories, are subdirectories of your current working directory

####links

  1. http://pig.apache.org/
  2. http://hadoop.apache.org/
  3. http://www.python.org/
  4. https://github.com/aaai2014sampld/PigAnalysis
  5. https://github.com/aaai2014sampld/GiraphAnalysis

graphsampling's People

Contributors

laurensrietveld avatar

Stargazers

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