Extension:SemanticRESTAPI
![]() Release status: beta |
|
---|---|
Implementation | API |
Description | Get data from Semantic MediaWiki through the REST API |
Author(s) | Sophivorustalk |
Latest version | 0.6 (2022-07-04) |
MediaWiki | 1.35+ |
PHP | 7+ |
Database changes | No |
License | GNU General Public License 3.0 or later |
Download | |
Example | [1] |
Quarterly downloads | 2 (Ranked 170th) |
Translate the SemanticRESTAPI extension if it is available at translatewiki.net | |
The Semantic REST API extension adds an endpoint to the MediaWiki REST API that gives access to semantic data from Semantic MediaWiki.
InstallationEdit
Install Extension:SemanticMediaWiki
- Download and place the file(s) in a directory called
SemanticRESTAPI
in yourextensions/
folder. - Add the following code at the bottom of your
LocalSettings.php
:wfLoadExtension( 'SemanticRESTAPI' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
UsageEdit
Once installed, simply browse to https://www.example.com/w/rest.php/semantic/v0/Title_of_the_page to get a JSON with all the semantic properties for the given page. For example, compare this and this.
See alsoEdit
- Extension:SemanticMediaWiki - Store and query semantic data
- Extension:Semantic Extra Special Properties - Add several standard semantic properties to every page