---
title: API Reference
description: Complete API documentation for all UNRDF packages
---

# API Reference

Comprehensive API documentation for the UNRDF v5 platform. All packages follow the **MJS + JSDoc + Zod** paradigm with runtime type validation.

## Core Packages

### [@unrdf/core](/api/core)
Core RDF store functionality, quad operations, and validation.

- **createStore()** - RDF triple store with Oxigraph backend
- **dataFactory** - RDF term and quad creation
- **QuadSchema** - Zod validation schemas

[View @unrdf/core API →](/api/core)

---

### [@unrdf/hooks](/api/hooks)
React hooks for RDF knowledge graphs with suspense support.

- **useStore()** - React state management for RDF stores
- **useQuery()** - SPARQL query hooks with caching
- **useReasoning()** - OWL-RL reasoning hooks

[View @unrdf/hooks API →](/api/hooks)

---

### [@unrdf/streaming](/api/streaming)
Transform streams for RDF data processing.

- **N3Parser** - Transform stream for N3/Turtle
- **QuadTransform** - Quad mapping utilities

[View @unrdf/streaming API →](/api/streaming)

---

### [@unrdf/federation](/api/federation)
Distributed knowledge graph federation.

- **FederatedStore** - Multi-store query coordination
- **SPARQLFederation** - Federated SPARQL endpoints

[View @unrdf/federation API →](/api/federation)

---

### [@unrdf/oxigraph](/api/oxigraph)
Oxigraph WASM bindings for UNRDF.

- **createStore()** - Oxigraph store factory
- **dataFactory** - RDF data factory

[View @unrdf/oxigraph API →](/api/oxigraph)

---

### [@unrdf/cli](/api/cli)
Command-line interface for RDF operations.

- **CLI Commands** - SPARQL, validation, conversion
- **REPL** - Interactive RDF shell

[View @unrdf/cli API →](/api/cli)

---

### [@unrdf/knowledge-engine](/api/knowledge-engine)
Advanced reasoning and inference engine.

- **OWL-RL Reasoner** - OWL 2 RL profile reasoning
- **Rule Engine** - Custom inference rules

[View @unrdf/knowledge-engine API →](/api/knowledge-engine)

---

## Documentation Conventions

All API documentation follows these conventions:

- **Type Annotations**: Zod schemas (not TypeScript types)
- **Validation**: Runtime validation with Zod
- **Examples**: Executable code snippets
- **Source Links**: Direct GitHub links to implementation

## Quick Navigation

- [Guides](/guides) - Getting started tutorials
- [Concepts](/concepts) - Deep dives into architecture
- [Examples](/examples) - Interactive code playground
- [Papers](/papers) - Research publications
