cayley

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Cayley

GoDoc Widget Go Report Card Widget

Cayley is an open-source database for Linked Data. It is inspired by the graph database behind Google's Knowledge Graph (formerly Freebase).

This is a fork of the upstream project.

Documentation

Features

  • Built-in query editor, visualizer and REPL
  • Multiple query languages:
  • Modular: easy to connect to your favorite programming languages and back-end stores
  • Production ready: well tested and used by various companies for their production workloads
  • Fast: optimized specifically for usage in applications
Performance

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.

License

Apache-2.0

Documentation

Index

Constants

This section is empty.

Variables

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

	NewTransaction = graph.NewTransaction
)

Functions

func Quad

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

func Triple

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

Types

type Handle

type Handle struct {
	graph.QuadStore
	graph.QuadWriter
}

func NewGraph

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

func NewMemoryGraph

func NewMemoryGraph(ctx context.Context) (*Handle, error)

func (*Handle) Close

func (h *Handle) Close() error

type Iterator

type Iterator = iterator.Shape

type Path

type Path = path.Path

type QuadStore

type QuadStore = graph.QuadStore

type QuadWriter

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
all
kv
log
memstore
Package b implements a B+tree.
Package b implements a B+tree.
sql
Package inference implements an in-memory store for inference.
Package inference implements an in-memory store for inference.
lru
kv
Package kv provides an abstraction over hierarchical key-value stores.
Package kv provides an abstraction over hierarchical key-value stores.
all
flat
Package flat provides an abstraction over flat key-value stores.
Package flat provides an abstraction over flat key-value stores.
flat/btree
Package b implements a B+tree.
Package b implements a B+tree.
Package quad defines quad and triple handling.
Package quad defines quad and triple handling.
dot
Package dot provides an encoder for DOT format (graphviz).
Package dot provides an encoder for DOT format (graphviz).
gml
Package gml provides an encoder for Graph Modeling Format
Package gml provides an encoder for Graph Modeling Format
graphml
Package graphml provides an encoder for GraphML format
Package graphml provides an encoder for GraphML format
json
Package json provides an encoder/decoder for JSON quad formats
Package json provides an encoder/decoder for JSON quad formats
jsonld
Package jsonld provides an encoder/decoder for JSON-LD quad format
Package jsonld provides an encoder/decoder for JSON-LD quad format
nquads
Package nquads implements parsing the RDF 1.1 N-Quads like line-based syntax for RDF datasets.
Package nquads implements parsing the RDF 1.1 N-Quads like line-based syntax for RDF datasets.
pquads
Package pquads implements Cayley-specific protobuf-based quads format.
Package pquads implements Cayley-specific protobuf-based quads format.
voc
Package voc implements an RDF namespace (vocabulary) registry.
Package voc implements an RDF namespace (vocabulary) registry.
voc/core
Package core imports all well-known RDF vocabularies.
Package core imports all well-known RDF vocabularies.
voc/owl
Package owl contains constants of the Web Ontology Language (OWL)
Package owl contains constants of the Web Ontology Language (OWL)
voc/rdf
Package rdf contains constants of the RDF Concepts Vocabulary (RDF)
Package rdf contains constants of the RDF Concepts Vocabulary (RDF)
voc/rdfs
Package rdfs contains constants of the RDF Schema vocabulary (RDFS)
Package rdfs contains constants of the RDF Schema vocabulary (RDFS)
voc/schema
Package schema contains constants of the Schema.org vocabulary.
Package schema contains constants of the Schema.org vocabulary.
voc/xsd
Package xsd contains constants of the W3C XML Schema Definition Language https://www.w3.org/TR/xmlschema11-1/
Package xsd contains constants of the W3C XML Schema Definition Language https://www.w3.org/TR/xmlschema11-1/
Package query defines the graph session interface general to all query languages.
Package query defines the graph session interface general to all query languages.
mql
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

Jump to

Keyboard shortcuts

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