AW

atomgraph/web-algebra

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

46 stars 5 forks 품질 83 트렌드 32Apache-2.0

일반 Linked Data/SPARQL 및 LinkedDataHub-specific MCP 도구 모음

개요

JSON-formatted Domain-specific language operations for loading, 쿼리 및 쓰기 RDF Linked Data에 대한 자연적인 언어 지침을 번역하는 composable RDF 운영 체계. 이 시스템은 RDF Linked Data 및 SPARQL 관리, LinkedDataHub-specific 작업에 대한 일반적인 작업을 구현합니다. 가동은 2가지 방법으로 소모될 수 있습니다: 1. : Operations는 JSON 구조로 구성되며 제공된 실행 엔진에 의해 실행됩니다. 2. : Operations는 AI Agent를 위한 도구로 상호 작용적으로 사용할 수 있습니다. MSP 도구 호출을 통해 semantic 워크플로우를 실행하는 에이전트 대신 Web-Algebra는 원자로를 실행하는 최적화된 JSON "bytecode"로 전체 워크플로우를 컴파일하는 에이전트를 가능하게 합니다. 복잡한 멀티 운영 구성을 가능하게 합니다. WebAlgebra in action - 자연적인 언어를 RDF로 번역하십시오.

개요(AI 번역)

JSON-formatted Domain-specific language operations for loading, 쿼리 및 쓰기 RDF Linked Data에 대한 자연적인 언어 지침을 번역하는 composable RDF 운영 체계.

개요

이 시스템은 RDF Linked Data 및 SPARQL 관리, LinkedDataHub-specific 작업에 대한 일반적인 작업을 구현합니다. 가동은 2가지 방법으로 소모될 수 있습니다:

1.Executable JSON 형식: Operations는 JSON 구조로 구성되며 제공된 실행 엔진에 의해 실행됩니다. 2. ** 모형 Context 의정서 (MCP) **: Operations는 AI Agent를 위한 도구로 상호작용을 사용하도록 노출됩니다.

MSP 도구 호출을 통해 semantic 워크플로우를 실행하는 에이전트 대신 Web-Algebra는 원자로를 실행하는 최적화된 JSON "bytecode"로 전체 워크플로우를 컴파일하는 에이전트를 가능하게 합니다. 복잡한 멀티 운영 구성을 가능하게 합니다.

데모

See WebAlgebra in action - 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": "********" } } } }