rete
БесплатноЗапускает вложенные скриптыНе проверенBuild, inspect, host, and query caviri/rete single-file immutable .rete RDF knowledge graph archives via HTTP Range Requests, SPARQL 1.1, openCypher, SHACL…
от akillness★ 63 звезды на GitHubОб этом скилле
Rete (caviri/rete)
Source-pinned operator guide for caviri/rete (v0.7.8, Apache-2.0): single-file, immutable, HTTP Range-queryable RDF knowledge graph archives (.rete) with embedded Dataset Cards, label/full-text indexes, Louvain/type community pyramids, SPARQL 1.1, SHACL validation, and OWL 2 QL reasoning.
When to use this skill
- Packaging RDF datasets (
.nt,.nq,.ttl,.trig,.rdf/.owl/.rdfxml,.jelly,.jsonld,.yamlld,.gz, or directories) into self-describing.retearchives withrete build. - Inspecting zero-download file metadata, Dataset Cards, schemas, predicates, or cost estimates (
rete info,rete card,rete card-url,rete schema,rete cost,rete verify). - Querying local files or remote HTTP Range URLs with SPARQL (
rete sparql,rete sparql-url,rete federate), triple patterns (rete query,rete query-url), full-text/label search (rete search,rete search-url), openCypher (rete cypher), SHACL (rete shacl), or OWL 2 QL (--reason). - Embedding
rete-graph(0.7.8) in Python or JS/WASM, hosting.retearchives on S3/Cloudflare R2/GitHub Pages, or selecting between local offlinerete.mcpband the hosted public MCP endpoint. - Routing out: use
open-ontologiesfor mutable local ontology diffs/planning/certificates (oo-cert),pmtilesfor geospatial map tile archives,semanticafor ontology/semantic extraction pipelines, andgraphifyfor source-code repository graphs.
Instructions
Run the offline preflight first from
.agent-skills/reteto verify manifest pin integrity and detect installed tools (rete,cargo,python3,node,docker) without executing upstream code:python3 scripts/preflight.py --json python3 scripts/preflight.py --json --repo /absolute/path/to/caviri-reteRead references/upstream.md and references/source.json before citing CLI flags, format limits, or client APIs.
Distinguish the CLI binary from language libraries and check format compatibility:
pip install rete-graph(PyPI0.7.8) andnpm install rete-graph(npm0.7.8) install in-process libraries only — they do not provide the nativereteCLI. Install the CLI separately viacargo install rete-cli, a signedv0.7.8release binary, orghcr.io/caviri/rete.- Engine
0.7.8writes binary format0x08and reads0x05–0x08; readers from<= 0.6.xcannot open0x08files. - Keep the default 6-permutation index (
--permutations 6) unless explicitly optimizing size for a read profile tested against target readers.
Build
.retearchives reproducibly and safely:- Use
--card,--title,--license,--source,--label-index, and--text-indexwhen publishing discoverable graphs; setRETE_BUILD_RECORD=reproduciblefor deterministic build-info bytes. - For large inputs exceeding RAM, pass
--memory-budget-mb <N>and--pyramid-algo types(or--no-pyramidwhen only SPARQL/SHACL/triple patterns are needed). Note: JSON-LD is buffered whole and cannot run under--memory-budget-mb; convert large JSON-LD to N-Quads first. - Keep builds offline by default: map required remote JSON-LD
@contextfiles locally via--context https://schema.org/=schema.jsonldrather than enabling--fetch-contextswithout explicit approval. - Keep a backup before modifying an existing archive with
rete recard --in-place(use--keep-curatedto preserve publisher card fields).
- Use
Query locally or over HTTP Range URLs:
- Discover structure cheaply before scanning triples: run
rete card-url->rete schema/rete predicates->rete sparql-urlwith explicitLIMIT. - For OWL 2 QL reasoning or SHACL validation on
.retefiles, verify whether rules were materialized (--materialize) or evaluated at query time (--reason/rete shacl).
- Discover structure cheaply before scanning triples: run
Enforce hosting and MCP privacy boundaries:
- Static hosting (S3, R2, GitHub Pages, Zenodo) must serve HTTP
Accept-Ranges: bytes. Browser WASM clients additionally require CORSAllowedHeaders: ["Range"]andExposeHeaders: ["Content-Range", "Content-Length", "Accept-Ranges", "ETag"]; avoid Hugging Faceresolve/302 redirect URLs in browser sync-XHR readers. - Never send private
.retefiles, internal URLs, or confidential RDF text to the hosted Hugging Face MCP (https://katospiegel-rete.hf.space/mcp/). For private or offline graphs, use the localrete.mcpbextension (Node + WASM) or localrete servewith explicit user approval.
- Static hosting (S3, R2, GitHub Pages, Zenodo) must serve HTTP
Examples
# Build a self-describing .rete archive with Dataset Card, label index, and reproducible metadata
RETE_BUILD_RECORD=reproducible rete build data.ttl \
--card --title "Domain Graph" --license CC-BY-4.0 --label-index \
-o domain.rete
# Inspect header, Dataset Card, and run a bounded SPARQL query locally
rete info domain.rete --json
rete card domain.rete --json
rete sparql domain.rete "S
Установить rete в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBashВложенные файлы
FAQ
Что делает скилл rete?
Build, inspect, host, and query caviri/rete single-file immutable .rete RDF knowledge graph archives via HTTP Range Requests, SPARQL 1.1, openCypher, SHACL, and OWL 2 QL reasoning across rete CLI, Python/JS-WASM libraries, and MCP. Use when creating .rete files from Turtle/N-Triples/N-Quads/TriG/RDF-XML/Jelly/JSON-LD/YAML-LD, reading Dataset Cards or community pyramids, running local or remote SPARQL over URLs, configuring S3/R2/GitHub Pages Range hosting, or connecting local rete.mcpb vs hosted MCP. Do not use for mutable local RocksDB ontology planning/diff workspaces (route to open-ontologies), geospatial vector/raster map tiles (route to pmtiles), or repository code-graph extraction (route to graphify). Triggers on: rete, .rete, rete-cli, rete-graph, caviri/rete, RDF archive, HTTP Range SPARQL, rete.mcpb.
Как установить скилл rete?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rete запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic