Coder Social home page Coder Social logo

triplebit's Introduction

TripleBit (c) 2011 Massive Data Management Group @ SCTS & CGCL. Web site: http://grid.hust.edu.cn/triplebit

This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

Dependency:

Please install boost and raptor, you can use the following versions or other versions.

boost-1.39.0.tar.gz raptor-1.4.21.tar.gz

On Ubuntu 18.04 / 18.10 / 19.04 / 19.10 run the commands below to install the perquisites for building TripleBit.

## install perquisites via apt
sudo apt install librdf0-dev libxml2-dev flex bison autopoint gtk-doc-tools libtool m4 automake gcc g++ build-essential git libboost-all-dev cmake
## compile old versions of libraries that are no longer in the ubuntu apt repos 
# old curl for raptor 
wget https://curl.haxx.se/download/archeology/curl-7.19.7.tar.gz
tar -xvzf curl-7.19.7.tar.gz
cd curl-7.19.7/
./configure
make -j
sudo make install
cd ../
# old raptor
wget http://download.librdf.org/source/raptor-1.4.21.tar.gz
tar -xvzf raptor-1.4.21.tar.gz
cd raptor-1.4.21
./autogen.sh 
./configure
make -j
sudo make install 
cd ../

Building:

TripleBit must be build using GNU make and a reasonable C++ compiler. Ideally a simple

make

is enough, it will build the tree high-level executables in bin/lrelease/.

Using:

TripleBit currently includes three high-level executables. The first buildTripleBitFromN3) is used to build a new database from an turtle/ntriples input:

buildTripleBitFromN3 mydata.n3 database_directory

The input file can be arbitrarily large, the buildTripleBitFromN3 spools to disk if main memory is exhausted.

The second (buildTripleBitFromRDF) is similar to the first executable except the input file is a rdf file.

After loading the database can be queried with triplebitQuery:

triplebitQuery database_directory query_directory

triplebitQuery database_directory

The program shows a command prompt and accept SPARQL queries. Just type your SPARQL query in a single line and press ENTER.

Note: TripleBit currently only supports "select" queries.

triplebit's People

Contributors

bigerl avatar nitingupta910 avatar

Watchers

James Cloos 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.