A large-scale entity and relation database supporting aggregation of properties
Switch branches/tags
gaffer2-1.7.0 gaffer2-1.7.0-RC4 gaffer2-1.7.0-RC3 gaffer2-1.7.0-RC2 gaffer2-1.7.0-RC1 gaffer2-1.6.0 gaffer2-1.6.0-RC2 gaffer2-1.6.0-RC1 gaffer2-1.5.2 gaffer2-1.5.1 gaffer2-1.5.0 gaffer2-1.5.0-RC3 gaffer2-1.5.0-RC2 gaffer2-1.5.0-RC1 gaffer2-1.4.1 gaffer2-1.4.0 gaffer2-1.4.0-RC4 gaffer2-1.4.0-RC3 gaffer2-1.4.0-RC2 gaffer2-1.4.0-RC1 gaffer2-1.3.0 gaffer2-1.3.0-RC1 gaffer2-1.2.0 gaffer2-1.2.0-RC1 gaffer2-1.1.2 gaffer2-1.1.1 gaffer2-1.1.0 gaffer2-1.1.0-RC1 gaffer2-1.0.2 gaffer2-1.0.1 gaffer2-1.0.0 gaffer2-1.0.0-RC5 gaffer2-1.0.0-RC4 gaffer2-1.0.0-RC3 gaffer2-1.0.0-RC2 gaffer2-1.0.0-RC1 gaffer2-0.7.8 gaffer2-0.7.7 gaffer2-0.7.6 gaffer2-0.7.5 gaffer2-0.7.4 gaffer2-0.7.3 gaffer2-0.7.2 gaffer2-0.7.1 gaffer2-0.7.0 gaffer2-0.6.6 gaffer2-0.6.5 gaffer2-0.6.4 gaffer2-0.6.3 gaffer2-0.6.2 gaffer2-0.6.1 gaffer2-0.6.0 gaffer2-0.5.1 gaffer2-0.5.0 gaffer2-0.4.7.2 gaffer2-0.4.7.1 gaffer2-0.4.7 gaffer2-0.4.6.2 gaffer2-0.4.6.1 gaffer2-0.4.6 gaffer2-0.4.5 gaffer2-0.4.4 gaffer2-0.4.3 gaffer2-0.4.2 gaffer2-0.4.1 gaffer2-0.4.1-RC1 gaffer2-0.4.0 gaffer2-0.4.0-RC3 gaffer2-0.4.0-RC2 gaffer2-0.4.0-RC1 gaffer2-0.3.9 gaffer2-0.3.9-RC2 gaffer2-0.3.9-RC1 gaffer2-0.3.8 gaffer2-0.3.8-RC1 gaffer2-0.3.7 gaffer2-0.3.7-RC2 gaffer2-0.3.7-RC1 gaffer2-0.3.6 gaffer2-0.3.6-RC2 gaffer2-0.3.6-RC1 gaffer2-0.3.5 gaffer2-0.3.5-RC1 gaffer2-0.3.4 gaffer2-0.3.4-RC2 gaffer2-0.3.4-RC1 gaffer2-0.3.3 gaffer2-0.3.3-RC2 gaffer2-0.3.3-RC1 gaffer2-0.3.2 gaffer2-0.3.2-RC1 gaffer2-0.3.1 gaffer2-0.3.1-RC1 gaffer2-0.3.0 gaffer1-1.3.0
Nothing to show
Clone or download
Travis CI User
Latest commit b892624 Oct 3, 2018

README.md

Copyright 2016-2018 Crown Copyright

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Gaffer

Gaffer is a graph database framework. It allows the storage of very large graphs containing rich properties on the nodes and edges. Several storage options are available, including Accumulo, Hbase and Parquet.

It is designed to be as flexible, scalable and extensible as possible, allowing for rapid prototyping and transition to production systems.

Gaffer offers:

  • Rapid query across very large numbers of nodes and edges;
  • Continual ingest of data at very high data rates, and batch bulk ingest of data via MapReduce or Spark;
  • Storage of arbitrary Java objects on the nodes and edges;
  • Automatic, user-configurable in-database aggregation of rich statistical properties (e.g. counts, histograms, sketches) on the nodes and edges;
  • Versatile query-time summarisation, filtering and transformation of data;
  • Fine grained data access controls;
  • Hooks to apply policy and compliance rules to queries;
  • Automated, rule-based removal of data (typically used to age-off old data);
  • Retrieval of graph data into Apache Spark for fast and flexible analysis;
  • A fully-featured REST API.

To get going with Gaffer, visit our getting started pages.

Gaffer is under active development. Version 1.0 of Gaffer was released in October 2017.

License

Gaffer is licensed under the Apache 2 license and is covered by Crown Copyright.

Getting Started

Try it out

We have a demo available to try that is based around a small uk road use dataset. See the example/road-traffic README to try it out.

Building and Deploying

To build Gaffer run mvn clean install -Pquick in the top-level directory. This will build all of Gaffer's core libraries and some examples of how to load and query data.

See our Store documentation page for a list of available Gaffer Stores to chose from and the relevant documentation for each.

Inclusion in other projects

Gaffer is hosted on Maven Central and can easily be incorporated into your own maven projects.

To use Gaffer from the Java API the only required dependencies are the Gaffer graph module and a store module for the specific database technology used to store the data, e.g. for the Accumulo store:

<dependency>
    <groupId>uk.gov.gchq.gaffer</groupId>
    <artifactId>graph</artifactId>
    <version>${gaffer.version}</version>
</dependency>
<dependency>
    <groupId>uk.gov.gchq.gaffer</groupId>
    <artifactId>accumulo-store</artifactId>
    <version>${gaffer.version}</version>
</dependency>

This will include all other mandatory dependencies. Other (optional) components can be added to your project as required.

Documentation

Our Javadoc can be found here.

We have some user guides in our docs.

Related repositories

The gaffer-tools repository contains useful tools to help work with Gaffer. These include:

  • jar-shader - Used to shade the version of Jackson to avoid incompatibility problems on CDH clusters;
  • mini-accumulo-cluster - Allows a mini Accumulo cluster to be spun up for testing purposes;
  • performance-testing - Methods of testing the peformance of ingest and query operations against a graph;
  • python-shell - Allows operations against a graph to be executed from a Python shell;
  • random-element-generation - Code to generate large volumes of random graph data;
  • schema-builder - A (beta) visual tool for writing schemas for a graph;
  • slider - Code to deploy a Gaffer cluster to a YARN cluster using Apache Slider, including the ability to easily run Slider on an AWS EMR cluster;
  • ui - A basic graph visualisation tool.

Contributing

We welcome contributions to the project. Detailed information on our ways of working can be found here. In brief: