v3.0.0+
Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
API modules
From Linux Web Expert
Template:Interlanguagelink: en
The semantic API modules (SMW API) are provided by Semantic MediaWiki and related extensions enabling external components or data services to access semantically annotated information stored in the Semantic MediaWiki database via several available interfaces using a standardized HTTP request.
The semantic API modules allow to select and retrieve, i.e. read annotated information stored on the wiki. If information has to be written to the wiki then the regular MediaWiki API-modules available for editing must be used. This is to ensure that the corresponding wiki page is updated the same way as when one would edit on-wiki. Moreover this also makes sure that no information accessible via a wiki page revision is lost.
API modules
Active modules
Deprecated modules
Configuration parameters
- Manual page on configuration parameter
$wgCrossSiteAJAXdomains
(MediaWiki.org) − Allows to specify domains that may make cross-site Ajax requests to the MediaWiki API for Cross-origin resource sharing (CORS) - Manual page on configuration parameter
$wgEnableAPI
(MediaWiki.org) − Allows to enable direct access to the MediaWiki API through "api.php" (deprecated in MediaWiki 1.31 and removed in 1.32, i.e. the API cannot be disabled for reading.) - Manual page on configuration parameter
$wgEnableWriteAPI
(MediaWiki.org) − Allows the MediaWiki API to be used through "api.php" to perform write operations (page edits, uploads, etc.) when an authorized user accesses it (deprecated in MediaWiki 1.31 and removed in 1.32, i.e. the API cannot be disabled for writing.)
See also
- General /README/ of the SMW API as provided via the source code
- Help page on /Troubleshooting/ the SMW API
- Help page on Serialization (JSON) performed by the SMW API
- RFC concerning the SMW API on the SMW developer list, September 18, 2011
- Video of a related talk at SMWCon 2011 fall in Berlin