v3.0.0+
Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
API module "smwbrowse"
From semantic-mediawiki.org
smwbrowse | |
---|---|
Allows to search for properties, categories and concepts | |
Keywords | |
Further Information | |
Provided by: | Semantic MediaWiki |
Added: | 3.0.0 |
Removed: | still available |
The "smwbrowse" API module supports the search for properties, categories and concepts via action "smwbrowse" (?action=smwbrowse
) against Semantic MediaWiki using the MediaWiki API and get results back serialized in one of the supported formats. This module is similar to API-module "browsebyproperty"Allows to fetch information about a property or a list of properties. It was introduced with Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x..12
The module supports two submodules:
- "
browse
": The object to be searched, either "property
", "pvalue
", "category
" or "concept
" - "
params
": The query parameters provided in json-format- primary selectors: "
limit
", "offset
", "search
" and "property
" (the latter only available if "pvalue
" was chosen as the value for the "browse
" parameter) - special selectors: "
description
" "prefLabel
" and "usageCount
" (available if "property
" was chosen as the value for the "browse
" parameter)
- primary selectors: "
Returned results are by default cached for one hour. This time span may be adapted via the "
api.browse
" or "api.browse.pvalue
" option respectively to configuration parameter $smwgCacheUsage
Sets how the caching behaviour or special pages related to Semantic MediaWiki is controlled.
Examples
- property information
-
../api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 0, "search": "Date", "description": true, "prefLabel": true, "usageCount": true }
- property values
-
../api.php?action=smwbrowse&browse=pvalue¶ms={ "limit": 10, "offset": 0, "property" : "Foo", "search": "tex" }
- category information
-
../api.php?action=smwbrowse&browse=category¶ms={ "limit": 10, "offset": 0, "search": "Date" }
- concept information
-
../api.php?action=smwbrowse&browse=concept¶ms={ "limit": 10, "offset": 0, "search": "Date" }
References
- ^ ↑ Semantic MediaWiki: GitHub pull request gh:smw:2696
- ^ ↑ Semantic MediaWiki: GitHub pull request gh:smw:3129