Skip to main content

Lexicon Hub

Share, discover, and reuse knowledge packages from the community

Lexicon Hub is a central registry for CCX knowledge packages — portable archives containing templates, entities, relationships, and workflows extracted from documents. Publish your extracted knowledge for others to build on, or pull community packages to jumpstart your own projects.

How It Works

Package Types

TypeDescriptionUse Case
FullComplete knowledge graph — templates, entities, relationshipsShare a fully extracted knowledge base
TemplatesNode and edge type definitions onlyShare domain schemas (medical, legal, technical)
KnowledgeGraph entities and relationshipsShare extracted data without schema definitions
WorkflowsAutomation definitions and triggersShare processing pipelines
MixedAny combination of the aboveFlexible packaging for partial shares

Quick Start

Pull a package

# Search for packages
chaoscypher lexicon search "medical ontology"

# Download a package
chaoscypher pull john/medical-ontology

# Import into your database
chaoscypher graph package load john-medical-ontology.ccx

Publish a package

# Login to Lexicon Hub
chaoscypher lexicon login

# Export your knowledge graph
chaoscypher graph package export --output my-knowledge.ccx

# Publish to the Hub
chaoscypher push my-knowledge.ccx --message "Initial release"

What's in a Package?

A CCX (Chaos Cypher eXchange) package is a compressed archive containing:

my-package.ccx
├── manifest.json # Package metadata and checksums
├── templates/ # Node and edge type definitions
│ ├── person.json
│ └── organization.json
├── graph/ # Knowledge graph data
│ ├── entities.jsonld # Nodes with properties
│ └── relationships.jsonld # Edges with properties
└── workflows/ # Automation definitions
└── extraction-pipeline.json

Packages are versioned, checksummed, and can be public or private. The manifest includes metadata like author, description, tags, and compatibility information.

Authentication

Lexicon Hub supports two authentication methods:

MethodBest ForHow
Device AuthorizationInteractive use (recommended)Browser-based OAuth — chaoscypher lexicon login
TokenCI/CD pipelinesDirect token — chaoscypher lexicon login --token TOKEN

See Authentication for setup details.

Configuration

Configure the Lexicon Hub connection in settings.yaml:

lexicon:
url: https://lexicon.example.com # Hub server URL
api_path: /api/v1 # API base path
timeout: 60 # Request timeout (seconds)

Or set the LEXICON_URL environment variable:

export LEXICON_URL=https://lexicon.example.com

Next Steps