export_graph
Export knowledge graphs in JSON, CSV, GraphML, RDF, or other formats, with optional filters, brotli compression, and PII redaction for sharing or backup.
Instructions
Export knowledge graph in various formats with optional brotli compression and streaming for large graphs. Supports W3C Linked Data formats (turtle, rdf-xml, json-ld) added in η.5.4.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Optional filter | |
| format | Yes | Export format. W3C Linked Data: turtle (RDF 1.1 Turtle), rdf-xml (RDF 1.1 XML with Statement reification for non-NCName predicates), json-ld (JSON-LD 1.1 with @context mapping to RDFS + DCTerms). | |
| compress | No | Compress output with brotli (auto-enabled for >100KB) | |
| redactPii | No | When true, scrub PII (email/SSN/credit-card/phone/IPv4) from observations before export. Uses η.6.3 PiiRedactor with default pattern bank. | |
| streaming | No | Use streaming mode to write directly to file (requires outputPath) | |
| outputPath | No | File path for streaming export. Auto-enables streaming for graphs with >= 5000 entities. | |
| compressionQuality | No | Brotli quality level 0-11 (default: 6). Higher = better compression but slower. |