
atomgraph/web-algebra
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Linked Data/SPARQL と LinkedDataHub 固有の MCP ツールのスイート
概要
自然言語の指示をJSON形式のドメイン固有の言語操作に変換し、ロード、クエリ、RDFリンクデータを書き込むことができるRDFオペレーションシステム。 このシステムは、RDF Linked DataとSPARQL管理、およびLinkedDataHub固有の操作のための一般的な操作を実行します。 操作は2つの方法で消費することができます。 1. : オペレーションはJSON構造に構成され、提供された実行エンジンによって実行されます 2. : 操作は、AIエージェントが対話的に使用するツールとして公開されます 個々のMCPツールコールを介して、セマンティックワークフローを実行しているエージェントの代わりに、Web-Algebraは、エージェントがワークフロー全体を最適化されたJSON「バイトコード」にコンパイルできるようにします。これにより、複雑なマルチオペレーション構成が可能になります。 アクションでWebAlgebraを参照してください - 自然言語をRDF操作に翻訳します.
概要(AI 翻訳)
自然言語の指示をJSON形式のドメイン固有の言語操作に変換し、ロード、クエリ、RDFリンクデータを書き込むことができるRDFオペレーションシステム。
概要
このシステムは、RDF Linked DataとSPARQL管理、およびLinkedDataHub固有の操作のための一般的な操作を実行します。 操作は2つの方法で消費することができます。
1.JSONフォーマットの実行可能: オペレーションはJSON構造に構成され、提供された実行エンジンによって実行されます 2.モデルコンテキストプロトコル(MCP): 操作は、AIエージェントがインタラクティブに使用するためのツールとして公開されます
個々のMCPツールコールを介して、セマンティックワークフローを実行しているエージェントの代わりに、Web-Algebraは、エージェントがワークフロー全体を最適化されたJSON「バイトコード」にコンパイルできるようにします。これにより、複雑なマルチオペレーション構成が可能になります。
デモ
※アクションでWebAlgebraを見る - 自然言語をRDF操作に翻訳する*
アーキテクチャ
このシステムは[Operationの抽象ベースクラスの周りに構築されます。
- Registry System:[
src/web_algebra/operations/からの操作の自動検出
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Web-Algebra
A composable RDF operations system that translates natural language instructions into JSON-formatted domain-specific language operations for loading, querying, and writing RDF Linked Data.
Overview
This system implements generic operations for RDF Linked Data and SPARQL management, as well as some LinkedDataHub-specific operations. Operations can be consumed in two ways:
- Executable JSON format: Operations are composed into JSON structures and executed by the provided execution engine
- Model Context Protocol (MCP): Operations are exposed as tools for AI agents to use interactively
Instead of agents executing semantic workflows step-by-step through individual MCP tool calls, Web-Algebra enables agents to compile entire workflows into optimized JSON “bytecode” that executes atomically - enabling complex multi-operation compositions.
Demo
See WebAlgebra in action - translating natural language into RDF operations.
Architecture
The system is built around the Operation abstract base class that provides:
- Registry System: Auto-discovery of operations from
src/web_algebra/operations/ - JSON DSL: Operations use
@opkey withargsfor parameters, supporting nested operation calls - RDFLib Type System: Uses
URIRef,Literal,Graph, andResulttypes internally for proper RDF handling - Execution Engine: Both standalone execution and MCP server integration
- Context System: ForEach operations set row context for inner operations to access via
Value - URI Resolution: Proper semantic URI construction with
ResolveURIoperation
Key Components
- System Prompt: Complete operation definitions and JSON format specification
- Formal Semantics: Complete type system and operation catalog
- Operation Interface: Base class and JSON interpreter
- Operation Implementations: Directory containing all available operations
- Examples: Real-world plans over live Linked Data, each with its result and checks
Operations
The operations cover read-write Linked Data, SPARQL queries, URI manipulation, and LinkedDataHub-specific resource creation. Non-exhaustive list:
- Linked Data
GETPATCHPOSTPUT
- SPARQL
CONSTRUCTDESCRIBESELECTSubstituteValuesSPARQLString
- Schema
ExtractClassesExtractDatatypeProperties
インストール
uvx --from web-algebra web-algebra-mcp設定
{
"mcpServers": {
"web-algebra": {
"command": "uvx",
"args": ["--from", "web-algebra", "web-algebra-mcp"],
"env": {
"CERT_PEM_PATH": "/path/to/LinkedDataHub/ssl/owner/cert.pem",
"CERT_PASSWORD": "********"
}
}
}
}