MCPcopy
hub / github.com/cayleygraph/cayley

github.com/cayleygraph/cayley @v0.7.7 sqlite

repository ↗ · DeepWiki ↗ · release v0.7.7 ↗
3,876 symbols 11,627 edges 239 files 656 documented · 17%
README

Cayley

Build Status Container Repository

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

Get it from the Snap Store

Documentation

Features

  • Built-in query editor, visualizer and REPL
  • Multiple query languages:
  • Gizmo: query language inspired by Gremlin
  • GraphQL-inspired query language
  • MQL: simplified version for Freebase fans
  • 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.

Community

Extension points exported contracts — how you extend this code

Ref (Interface)
Ref defines an opaque "quad store reference" type. However the backend wishes to implement it, a Ref is merely a token t [7 …
graph/values.go
IteratorBase (Interface)
IteratorBase is a set of common methods for Scanner and Index iterators. [48 implementers]
graph/iterator.go
Scanner (Interface)
Scanner is an iterator that lists all results sequentially, but not necessarily in a sorted order. [35 implementers]
graph/shape.go
ValueFilter (Interface)
ValueFilter is an interface for iterator wrappers that can filter node values. [23 implementers]
graph/shape/shape.go
Iterator (Interface)
Iterator for query results. [5 implementers]
query/session.go
Namer (Interface)
(no doc) [7 implementers]
graph/quadstore.go
Logger (Interface)
Logger is the clog logging interface. [2 implementers]
clog/clog.go
BatchWriter (Interface)
(no doc) [3 implementers]
graph/quadwriter.go

Core symbols most depended-on inside this repo

Errorf
called by 275
clog/clog.go
String
called by 265
graph/shape.go
costarTag
called by 166
graph/graphtest/integration.go
Close
called by 140
graph/quadstore.go
get
called by 130
graph/memstore/keys.go
Next
called by 105
graph/shape.go
Close
called by 90
query/session.go
split
called by 88
graph/memstore/keys.go

Shape

Function 1,782
Method 1,667
Struct 315
TypeAlias 49
Interface 42
FuncType 21

Languages

Go76%
TypeScript24%
Python1%

Modules by API surface

static/third_party/d3.min.js374 symbols
static/third_party/codemirror/codemirror.min.js267 symbols
graph/shape/shape.go106 symbols
static/third_party/jquery.min.js74 symbols
query/gizmo/traversals.go74 symbols
graph/iterator/iterator.go68 symbols
static/third_party/codemirror/mode/javascript/javascript.min.js66 symbols
graph/kv/indexing.go66 symbols
graph/path/path.go59 symbols
graph/sql/shape.go56 symbols
graph/memstore/quadstore.go52 symbols
graph/memstore/keys_test.go51 symbols

Dependencies from manifests, versioned

github.com/badgerodon/pegv0.0.0-2013072917515 · 1×
github.com/cayleygraph/quadv1.1.0 · 1×
github.com/cockroachdb/apdv1.1.0 · 1×
github.com/containerd/continuityv0.0.0-2019042606220 · 1×
github.com/coreos/bboltv1.3.3 · 1×
github.com/cznic/mathutilv0.0.0-2017031310283 · 1×
github.com/d4l3k/messagediffv1.2.1 · 1×
github.com/dennwc/graphqlv0.0.0-2018060314410 · 1×
github.com/dlclark/regexp2v1.1.4 · 1×
github.com/docker/dockerv0.7.3-0.20180412203 · 1×
github.com/docker/go-unitsv0.4.0 · 1×

Datastores touched

(mysql)Database · 1 repos
database-nameDatabase · 1 repos

For agents

$ claude mcp add cayley \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact