# SPARQL

> MediaWiki extension that allows executing SPARQL queries and templating their results via Lua

**Wikidata**: [Q124455442](https://www.wikidata.org/wiki/Q124455442)  
**Source**: https://4ort.xyz/entity/sparql-q124455442

## Summary
SPARQL is a free software MediaWiki extension developed by Professional Wiki that enables users to execute SPARQL queries and template their results using Lua. It integrates with MediaWiki and requires Lua for functionality, making it a tool for structured data management in wikis.

## Key Facts
- **Type**: MediaWiki extension for executing SPARQL queries and templating results via Lua
- **Developed by**: Professional Wiki (inception: 2019-01-01, Germany-based)
- **License**: GNU General Public License, version 2.0 or later
- **Version**: 1.0.0 (released 2023-11-24)
- **Requires**: Lua (5.1.5), Scribunto (1.39+), MediaWiki (1.39+), PHP (8.1+)
- **Maintained by**: Professional Wiki (since 2023-10-29)
- **Website**: [professional.wiki](https://professional.wiki/en/extension/sparql) (preferred), [MediaWiki](https://www.mediawiki.org/wiki/Extension:SPARQL), [GitHub](https://github.com/ProfessionalWiki/SPARQL)
- **Source code**: Hosted on GitHub under Professional Wiki’s repository
- **Quality assurance**: Uses GitHub Actions for continuous integration

## FAQs
### Q: What is SPARQL used for?
A: SPARQL is a MediaWiki extension that allows users to execute SPARQL queries and template their results using Lua, enabling structured data management in wikis.

### Q: Who developed SPARQL?
A: SPARQL was developed by Professional Wiki, a German-based provider of enterprise wiki software solutions.

### Q: What software does SPARQL require?
A: SPARQL requires Lua (5.1.5), Scribunto (1.39+), MediaWiki (1.39+), and PHP (8.1+).

### Q: Is SPARQL free software?
A: Yes, SPARQL is distributed under the GNU General Public License, version 2.0 or later, making it free software.

### Q: Where can I find the source code for SPARQL?
A: The source code for SPARQL is available on GitHub at [ProfessionalWiki/SPARQL](https://github.com/ProfessionalWiki/SPARQL).

## Why It Matters
SPARQL plays a crucial role in enabling structured data querying and templating within MediaWiki environments. By integrating SPARQL queries with Lua templating, it provides a powerful tool for managing and presenting complex data in wikis. This extension is particularly valuable for organizations using MediaWiki for enterprise knowledge management, as it enhances the platform’s ability to handle and display structured data efficiently. Its development by Professional Wiki, a specialized wiki software provider, ensures that it meets the needs of enterprise users while maintaining compatibility with modern MediaWiki and PHP versions. The extension’s open-source licensing further promotes its adoption and customization by the community.

## Notable For
- **Integration with Lua**: SPARQL uniquely combines SPARQL queries with Lua templating, offering a flexible way to manage and display structured data in MediaWiki.
- **Enterprise Focus**: Developed by Professional Wiki, an enterprise wiki software provider, SPARQL is tailored for professional use, ensuring reliability and scalability.
- **Open Source**: Licensed under the GNU GPL, SPARQL is freely available for use, modification, and distribution, fostering community contributions.
- **Modern Compatibility**: Requires MediaWiki 1.39+, PHP 8.1+, and Lua 5.1.5, ensuring it works with current web development standards.
- **GitHub Hosting**: The source code is hosted on GitHub, facilitating community engagement and continuous integration through GitHub Actions.

## Body
### Overview
SPARQL is a MediaWiki extension that allows users to execute SPARQL queries and template their results using Lua. It is developed by Professional Wiki, a German-based provider of enterprise wiki software solutions, and is distributed under the GNU General Public License, version 2.0 or later.

### Development and Release
- **Developer**: Professional Wiki (inception: 2019-01-01)
- **Maintainer**: Professional Wiki (since 2023-10-29)
- **Version**: 1.0.0 (released 2023-11-24)
- **Source Code**: Hosted on GitHub at [ProfessionalWiki/SPARQL](https://github.com/ProfessionalWiki/SPARQL)

### Technical Requirements
- **MediaWiki**: Version 1.39 or later
- **PHP**: Version 8.1 or later
- **Lua**: Version 5.1.5
- **Scribunto**: Version 1.39 or later

### Licensing and Quality Assurance
- **License**: GNU General Public License, version 2.0 or later
- **Quality Assurance**: Uses GitHub Actions for continuous integration

### Websites and Documentation
- **Primary Website**: [professional.wiki](https://professional.wiki/en/extension/sparql) (preferred)
- **MediaWiki Page**: [Extension:SPARQL](https://www.mediawiki.org/wiki/Extension:SPARQL)
- **GitHub Repository**: [ProfessionalWiki/SPARQL](https://github.com/ProfessionalWiki/SPARQL)

### Additional Features
- **MediaWiki Hooks**: Uses hooks for integration with MediaWiki
- **Issue Tracker**: Available on GitHub at [ProfessionalWiki/SPARQL/issues](https://github.com/ProfessionalWiki/SPARQL/issues)
- **YouTube Demo**: Includes a demo video (ID: iPxMPo7YYQM) showcasing SPARQL functionality

### Contributors
- **Primary Contributor**: Jeroen De Dauw (since 2023-10-29)

## References

1. [GitHub](https://github.com/ProfessionalWiki/SPARQL/blob/master/README.md#sparql)
2. [GitHub](https://github.com/ProfessionalWiki/SPARQL/blob/master/LICENSE)
3. [GitHub](https://github.com/ProfessionalWiki/SPARQL/commit/4efa7a5fa65aa5e3ff9f3bd27e163a2c9957a4a4)
4. [GitHub](https://github.com/ProfessionalWiki/SPARQL/graphs/contributors)
5. [GitHub](https://github.com/ProfessionalWiki/SPARQL/blob/1.0.0/README.md#installation)
6. [GitHub](https://github.com/ProfessionalWiki/SPARQL/releases/tag/1.0.0)
7. [Source](https://www.mediawiki.org/w/index.php?title=Extension:SPARQL&oldid=6358124)
8. [Source](https://github.com/ProfessionalWiki/SPARQL/commit/37708463bc1c9587750fbe7a2fe2b83c9883915a)
9. [Source](https://github.com/ProfessionalWiki/SPARQL/commit/4efa7a5fa65aa5e3ff9f3bd27e163a2c9957a4a4#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R10)
10. GitHub
11. [Source](https://github.com/ProfessionalWiki/SPARQL/blob/1.0.0/extension.json#L35)
12. [Source](https://github.com/ProfessionalWiki/SPARQL/blob/1.0.0/extension.json#L36)
13. [Source](https://github.com/ProfessionalWiki/SPARQL/commit/dfc7d85efc2ed682615fa5df48a0e38e5cc429c2)