Skip to content

Conversation

jravenel
Copy link
Contributor

Features:

  • Natural language to SPARQL conversion using GPT-4o
  • Direct SPARQL query execution against Wikidata
  • Entity search and discovery
  • Result enhancement with metadata
  • Comprehensive error handling and validation

Module Structure:

  • WikidataAgent: Main orchestrating agent
  • WikidataIntegration: Direct API communication
  • NaturalLanguageToSparqlWorkflow: NL→SPARQL conversion
  • WikidataQueryPipeline: Query execution and enhancement
  • WikidataOntology.ttl: Common entities/properties reference
  • Comprehensive tests and examples

WIP
Not working as agent yet.

🚀 Features:
- Natural language to SPARQL conversion using GPT-4o
- Direct SPARQL query execution against Wikidata
- Entity search and discovery
- Result enhancement with metadata
- Comprehensive error handling and validation

📁 Module Structure:
- WikidataAgent: Main orchestrating agent
- WikidataIntegration: Direct API communication
- NaturalLanguageToSparqlWorkflow: NL→SPARQL conversion
- WikidataQueryPipeline: Query execution and enhancement
- WikidataOntology.ttl: Common entities/properties reference
- Comprehensive tests and examples

🎯 Usage:
Ask questions like 'Who are famous physicists?' and get structured data from Wikidata's 100M+ entities.

✅ Fully tested and operational
@jravenel jravenel linked an issue Jul 30, 2025 that may be closed by this pull request
@jravenel jravenel changed the title ✨ Add complete Wikidata module with natural language querying WIP: Add complete Wikidata module with natural language querying Jul 30, 2025
@jravenel jravenel changed the title WIP: Add complete Wikidata module with natural language querying WIP: Add Wikidata module with natural language querying Jul 30, 2025
@jravenel jravenel requested a review from Dr0p42 July 30, 2025 16:44
@jravenel
Copy link
Contributor Author

@Dr0p42 I did not manage to make the agent work with make chat agent=WikidataAgent

not working for any agent actually...can you try on your end if you reproduce? Thanks.

@jravenel jravenel marked this pull request as draft August 26, 2025 20:55
@jravenel jravenel closed this Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Wikidata agent as core module
1 participant