EM

emekaokoye/mcp-rdf-explorer

Developer tools

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

56 stars 11 forks 품질 80 트렌드 14MIT

emekaokoye/mcp-rdf-explorer는 MCP 서버 후보가 https://github.com/emekaokoye/mcp-rdf-explorer.에서 수입되었습니다

개요

emekaokoye/mcp-rdf-explorer는 MCP 서버 후보가 https://github.com/emekaokoye/mcp-rdf-explorer.에서 수입되었습니다

개요(AI 번역)

개요

로컬 파일 모드 또는 SPARQL 엔드포인트 모드에서 RDF (Turtle) 기반 지식 그래프의 탐험 및 분석을위한 대화형 인터페이스를 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 AI 애플리케이션(hosts/clients)과 RDF 데이터 간의 통신을 촉진하며, SPARQL 쿼리를 통해 그래프 탐사 및 분석 그래프 데이터를 만듭니다. 지식 그래프 연구 및 AI 데이터 준비를위한 완벽한 도구.

부품

도구

서버는 SPARQL 쿼리 및 검색 기능을 구현합니다.

  • [T0]]

  • 외부 endpoint에 SPARQL 쿼리를 직접 실행

  • 입력:

  • endpoint (str): 쿼리에 SPARQL 엔드포인트 URL.

  • query (str): 실행할 SPARQL 쿼리.

  • ctx (Context): FastMCP 컨텍스트 객체.

  • 반환: Query는 newline-separated 문자열로, 또는 오류 메시지.

  • [T4]]

  • 현재 그래프 또는 활성 외부 엔드포인트에 SPARQL 쿼리를 실행

  • 입력:

  • query (str): 실행할 SPARQL 쿼리.

  • ctx (Context): FastMCP 컨텍스트 객체.

  • use_service (bool): 로컬 모드(기본값: True)에서 태깅 쿼리에 대한 서비스 항목 사용 여부.

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

README

원문 README의 일부입니다. 원문 보기.

RDF Explorer v1.0.0

Overview

A Model Context Protocol (MCP) server that provides conversational interface for the exploration and analysis of RDF (Turtle) based Knowledge Graph in Local File mode or SPARQL Endpoint mode. This server facilitates communication between AI applications (hosts/clients) and RDF data, making graph exploration and analyzing graph data through SPARQL queries. A perfect tool for knowledge graph research and AI data preparation.

Components

Tools

The server implements SPARQL queries and search functionality:

  • execute_on_endpoint

    • Execute a SPARQL query directly on an external endpoint
    • Input:
      • endpoint (str): The SPARQL endpoint URL to query.
      • query (str): The SPARQL query to execute.
      • ctx (Context): The FastMCP context object.
    • Returns: Query results as a newline-separated string, or an error message.
  • sparql_query

    • Execute a SPARQL query on the current graph or active external endpoint
    • Input:
      • query (str): The SPARQL query to execute.
      • ctx (Context): The FastMCP context object.
      • use_service (bool): Whether to use a SERVICE clause for federated queries in local mode (default: True).
    • Returns: Query results as a newline-separated string, or an error message.
  • graph_stats

    • Calculate and return statistics about the graph in JSON format
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: JSON string containing graph statistics (e.g., triple count, unique subjects).
  • count_triples

    • Count triples in the graph. Disabled in SPARQL Endpoint Mode; use a custom prompt instead.
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: Number of triples as a string, or an error message.
  • full_text_search

    • Perform a full-text search on the graph or endpoint, avoiding proprietary syntax.
    • Input:
      • search_term (str): The term to search for.
      • ctx (Context): The FastMCP context object.
    • Returns: Search results as a newline-separated string, or an error message.
  • health_check

    • Check the health of the triplestore connection.
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: ‘Healthy’ if the connection is good, 'Unhealthy: ’ otherwise.
  • get_mode

    • Get the current mode of RDF Explorer. Useful for knowledge graph and semantic tech users to verify data source.
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: A message indicating the mode and dataset or endpoint.

Resources

The server exposes the following resources:

  • schema://all: Retrieve schema information (classes and properties) from the graph.

    • Returns: A newline-separated string of schema elements (classes and properties).
  • queries://{template_name}: Retrieve a predefined SPARQL query template by name.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "rdf_explorer": { "command": "C:\\path\\to\\venv\\Scripts\\python.exe", "args": ["C:\\path\\to\\server.py", "--triple-file", "your_file.ttl"] } } }