๐ RDF Validation Server with AI
Validate RDF/XML against SHACL schemas with AI-powered suggestions and corrections
Status: ๐ AI features enabled
Debug Info
Debug Info: - OPENAI_AVAILABLE: True - HF_INFERENCE_AVAILABLE: True - HF_API_KEY set: Yes - HF_API_KEY length: 37 - HF_ENDPOINT_URL: https://evxgv66ksxjlfrts.us-east-1.aws.endpoints.huggingface.cloud/v1/ - HF_MODEL: lmstudio-community/Llama-3.3-70B-Instruct-GGUF
๐ Input
Validation Template
Select the SHACL template to validate against
Enable AI-powered suggestions and corrections
๐ Examples & Tools
๐ Results
๐ ๏ธ AI-Generated Corrections
๐ Deployment Instructions for Hugging Face Spaces:
- Create a new Space on Hugging Face
- Set up your Hugging Face Inference Endpoint and get the endpoint URL
- Set your tokens in Space settings (use Secrets for security):
- Go to Settings โ Repository secrets
- Add:
HF_API_KEY
=your_huggingface_api_key_here
- Endpoint is now hardcoded to your specific Inference Endpoint
- Upload these files to your Space repository
- Install requirements: The Space will auto-install from
requirements.txt
๐ง MCP Server Mode:
This app functions as both a web interface AND an MCP server for Claude Desktop and other MCP clients.
Available MCP Tools:
validate_rdf_tool
: Validate RDF/XML against SHACL shapesget_ai_suggestions
: Get AI-powered fix suggestionsget_ai_correction
: Generate corrected RDF/XMLget_rdf_examples
: Retrieve example RDF snippetsvalidate_rdf_interface
: Complete validation with AI suggestions and corrections (primary tool)
MCP Configuration (Streamable HTTP): Add this configuration to your MCP client (Claude Desktop, etc.):
{
"mcpServers": {
"rdf-validator": {
"url": "https://jimfhahn-mcp4rdf.hf.space/gradio_api/mcp/"
}
}
}
Alternative SSE Configuration:
{
"mcpServers": {
"rdf-validator": {
"url": "https://jimfhahn-mcp4rdf.hf.space/gradio_api/mcp/sse"
}
}
}
๐ก Features:
- โ Real-time RDF/XML validation against SHACL schemas
- ๐ค AI-powered error suggestions and corrections (with HF Inference Endpoint)
- ๐ Built-in examples and templates
- ๐ Auto-validation as you type
- ๐ Copy results with one click
Note: AI features require a valid Hugging Face API key (HF_API_KEY) set as a Secret. Manual suggestions are provided as fallback.