cayley

package module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

Cayley

Cayley is an open-source graph inspired by the graph database behind Freebase and Google's Knowledge Graph.

Its goal is to be a part of the developer's toolbox where Linked Data and graph-shaped data (semantic webs, social networks, etc) in general are concerned.

Build Status Container Repository on Quay

Slack Status

Features

  • Community driven
  • Written in Go
    • can be used as a Go library
  • Easy to get running (3 or 4 commands)
  • RESTful API
    • or a REPL if you prefer
  • Built-in query editor and visualizer
  • Multiple query languages:
  • Plays well with multiple backend stores:
  • Modular design; easy to extend with new languages and backends
  • Good test coverage
  • Speed, where possible.

Rough performance testing shows that, on 2014 consumer hardware and an average disk, 134m quads in LevelDB is no problem and a multi-hop intersection query -- films starring X and Y -- takes ~150ms.

Community

Documentation

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StartMorphism = path.StartMorphism
	StartPath     = path.StartPath

	NewTransaction = graph.NewTransaction
)

Functions

func Quad added in v0.5.0

func Quad(subject, predicate, object, label interface{}) quad.Quad

func Triple added in v0.5.0

func Triple(subject, predicate, object interface{}) quad.Quad

Types

type Handle added in v0.5.0

type Handle struct {
	graph.QuadStore
	graph.QuadWriter
}

func NewGraph added in v0.5.0

func NewGraph(name, dbpath string, opts graph.Options) (*Handle, error)

func NewMemoryGraph added in v0.5.0

func NewMemoryGraph() (*Handle, error)

func (*Handle) Close added in v0.5.0

func (h *Handle) Close() error

type Iterator added in v0.5.0

type Iterator = graph.Iterator

type Path added in v0.5.0

type Path = path.Path

type QuadStore added in v0.5.0

type QuadStore = graph.QuadStore

type QuadWriter added in v0.5.0

type QuadWriter = graph.QuadWriter

Directories

Path Synopsis
Package clog provides a logging interface for cayley packages.
Package clog provides a logging interface for cayley packages.
cmd
examples
Package quad defines quad and triple handling.
Package quad defines quad and triple handling.
Package query defines the graph session interface general to all query languages.
Package query defines the graph session interface general to all query languages.
Package schema contains helpers to map Go objects to quads and vise-versa.
Package schema contains helpers to map Go objects to quads and vise-versa.
server
voc
Package voc implements an RDF namespace (vocabulary) registry.
Package voc implements an RDF namespace (vocabulary) registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL