AW

atomgraph/web-algebra

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

46 stars 5 forks 品質 83 トレンド 32Apache-2.0

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:

  1. Executable JSON format: Operations are composed into JSON structures and executed by the provided execution engine
  2. 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 @op key with args for parameters, supporting nested operation calls
  • RDFLib Type System: Uses URIRef, Literal, Graph, and Result types 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 ResolveURI operation

Key Components

Operations

The operations cover read-write Linked Data, SPARQL queries, URI manipulation, and LinkedDataHub-specific resource creation. Non-exhaustive list:

  • Linked Data
    • GET
    • PATCH
    • POST
    • PUT
  • SPARQL
    • CONSTRUCT
    • DESCRIBE
    • SELECT
    • Substitute
    • Values
    • SPARQLString
  • Schema
    • ExtractClasses
    • ExtractDatatypeProperties
GitHub で README 全文を見る

インストール

uvx --from web-algebra web-algebra-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "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": "********" } } } }