Giter Site home page Giter Site logo

khoanguyen1806 / blazegraphbasedtpfserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hartig/blazegraphbasedtpfserver

0.0 2.0 0.0 2.2 MB

Triple Pattern Fragment server that uses Blazegraph as backend

License: Apache License 2.0

Java 100.00%

blazegraphbasedtpfserver's Introduction

Blazegraph-Based TPF Server

The Blazegraph-Based TPF Server is a Linked Data Fragment (LDF) server that provides a Triple Pattern Fragment (TPF) interface using the Blazegraph graph database as backend.

Compiling

Before you can use the Blazegraph-Based TPF Server, you have to obtain the source code and compile it:

git clone https://github.com/hartig/BlazegraphBasedTPFServer.git
cd BlazegraphBasedTPFServer
mvn package

Configuration

To run an instance of the Blazegraph-Based TPF Server you need a configuration file. This file, usually called config.json, is a JSON document in which you specify the dataset(s) to which your server instance provides a TPF interface. The Blazegraph-Based TPF Server comes with an example of such a file, called config-example.json. Hence, you may copy this file to config.json and adjust it to your needs.

The configuration file contains a section for "datasources" to which you add every dataset as a separate entry. The "settings" section of such an entry for Blazegraph-based data sources contains the typical Blazegraph configuration options (which, in a standard Blazegraph setup, would be given in a properties file). In particular, for persistent, disk-based datasets (Blazegraph buffer mode "DiskRW" or "DiskWORM") the entry "com.bigdata.journal.AbstractJournal.file" has to refer to the corresponding Blazegraph journal file; for in-memory datasets (buffer mode "MemStore") the entry "file" has to refer to an RDF document. In the latter case the data from the document will be imported when you start your Blazegraph-Based TPF Server; for big datasets this import may take a bit of time (hence, your server is not available immediately) and it may require a significant amount of main memory.

Running

The server can be started as follows:

java -server -Xmx4g -jar target/BlazegraphBasedTPFServer-0.1.0.jar config.json

You may have to increase the -Xmx parameter if you use an in-memory dataset.

License

The Blazegraph-Based TPF Server is written by Olaf Hartig and released under the Apache License, Version 2.0.

blazegraphbasedtpfserver's People

Contributors

beebs-systap avatar hartig 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.