Coder Social home page Coder Social logo

pagerankrdf's Introduction

PageRankRDF

Note: This repository is now mantained by QAnswer, it can be found here.

This repository contains a command line tool to compute PageRank scores over RDF graphs. Applying the PageRank algorithm to RDF graphs is not difficult, but doing it in a memory efficient and scalable way is not easy.

Usage

The usage is very simple. Compile the project:

mvn clean package

The command line tool is then available:

 java -jar target/pagerank-0.1.0.jar

It currently supports two computation methods. The first can be used to compute PageRank scores over RDF files in common serilizations like nt or Turtle. An example usage would be:

java -jar pagerank.jar -in input.ttl -out output.nt

NOTE: This method is NOT memory efficient. You will need a BIG machine to run this script (depending on the size of your data)

The second method takes as input a RDF file in hdt format (http://www.rdfhdt.org). Hdt is a compressed format to store RDF. An example usage would be:

java -jar pagerank.jar -in input.hdt -out output.nt

The scores can be stored either by default in nt format using the vRank vocabulary. Also a tsv file can be generated.

The full list of options is:

Usage: java -jar pagerank.jar -in file -out pagerank [options]
Options:
  --damping, -D
    specifying the damping factor for the PageRank computation
    Default: 0.85
  --format, -f
    specify the output format for the PageRank scores, either "tsv" or "nt"
    Default: nt
  --help
    displays the list of possible parameters
* --input, -in
    specify a file in some RDF format or in HDT
  --iteration, -I
    specifying the number are performed by PageRank
    Default: 40
* --output, -out
    specify the file where the pagerank scores are stored
  --start-value, -S
    specifying the start value for the PageRank computation
    Default: 0.1

Already computed datasets

Note: This repository is now mantained by QAnswer, it can be found here.

The PageRank scores of some popular RDF datasets can be found HERE

pagerankrdf's People

Contributors

anbo-de avatar athalhammer avatar d063520 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pagerankrdf's Issues

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.