Web-Algebra CLAUDE.md

A set of project instructions for Web-Algebra, a system that turns natural-language requests into structured operations for working with linked data.

In plain words
What is it for?
It helps developers add or modify operations, process nested JSON instructions, manage row context, and work with RDF graphs.
Why use it?
It explains the project's operation registry, JSON format, execution model, and RDF data handling so agents can change the right components.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/atomgraph/web-algebra/claude-md
Clone the repo
git clone --depth 1 https://github.com/AtomGraph/Web-Algebra
Per session 897 This file is loaded in full into every session.
When invoked 897 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00897 $0.00897
Opus 5 $0.00449 $0.00449
Sonnet 5 $0.00179 $0.00179
Haiku 4.5 $0.00090 $0.00090

Measured 2d ago against content hash 5c5eb1d64801, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Web-Algebra CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is LinkedDataHub DSL - a composable RDF operations system that translates natural language instructions into JSON-formatted domain-specific language operations for loading, querying, and writing RDF data.

Core Architecture

The system is built around the Operation abstract base class in src/web_algebra/operation.py which:

  • Provides a registry system for all operations via Operation.registry
  • Supports both standalone execution (execute()) and MCP server integration (run())
  • Handles recursive JSON execution with execute_json() that processes nested @op structures
  • Operations are auto-discovered from src/web_algebra/operations/ directory

Key Components

  • Operation Registry: Operations self-register via Operation.register() during module import
  • JSON DSL: Operations use @op key with args for parameters, supporting nested operation calls
  • Context System: ForEach operations set row context for inner operations to access via Var
  • RDF Integration: Uses rdflib.Graph internally, JSON-LD for interchange

Commands

Development

# Install dependencies
poetry install

# Run standalone with JSON file
poetry run python src/web_algebra/main.py --from-json ./examples/example.json

# Run with LinkedDataHub integration
poetry run python src/web_algebra/main.py --from-json ./examples/denmark-cities.json \
  --cert_pem_path ../LinkedDataHub/ssl/owner/cert.pem \
  --cert_password Marchius

# Run as MCP server
poetry run uvicorn web_algebra.server:server --reload

Operation Development

When adding new operations:

  1. Inherit from Operation in src/web_algebra/operation.py
  2. Implement required methods: description(), inputSchema(), execute(), run()
  3. Place in src/web_algebra/operations/ directory for auto-discovery
  4. Use @op and args structure in JSON examples

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 92 lines · 897 tokens per session scan A 5c5eb1d64801

Subscribe to this mod's changes

Web-Algebra CLAUDE.md is an instructions file published in the GitHub repository AtomGraph/Web-Algebra (45 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 897 tokens to every session, about $0.0045 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.