MediaWiki API 帮助
这是自动生成的MediaWiki API文档页面。
文档和例子:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=smwbrowse
(main | smwbrowse)
- 此模块需要读取权限。
- 来源:Semantic MediaWiki
- 许可协议:GPL-2.0-or-later
支持浏览语义MediaWiki内不同实体类型的活动的API模块。
具体参数:
其他通用参数可用。
- browse
Specifies the type of browse activity
- 这个参数是必需的。
- 以下值中的一个:category、concept、page、property、psubject、pvalue、subject
- params
JSON encoded parameters containing required and optional fields and depend on the selected browse type
- 这个参数是必需的。
例子:
- Example showing how to browse properties using a wildcard search and default pagination.
- api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 0, "search": "*" } [在沙盒中打开]
- Example showing how to browse properties with pagination and descending sort order.
- api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 10, "search": "*", "sort": "desc" } [在沙盒中打开]
- Example showing how to browse properties filtered by a search term.
- api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 0, "search": "Date" } [在沙盒中打开]
- Example showing how to browse properties and include property descriptions in the results.
- api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 0, "search": "Date", "description": true } [在沙盒中打开]
- Example showing how to browse properties including descriptions and preferred labels.
- api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 0, "search": "Date", "description": true, "prefLabel": true } [在沙盒中打开]
- Example showing how to browse properties including descriptions, preferred labels, and usage counts.
- api.php?action=smwbrowse&browse=property¶ms={ "limit": 10, "offset": 0, "search": "Date", "description": true, "prefLabel": true, "usageCount": true } [在沙盒中打开]
- Example showing how to browse property values for a given property and search term.
- api.php?action=smwbrowse&browse=pvalue¶ms={ "limit": 10, "offset": 0, "property" : "Foo", "search": "Bar" } [在沙盒中打开]
- Example showing how to browse subjects for a property-value pair with a search filter.
- api.php?action=smwbrowse&browse=psubject¶ms={ "limit": 10, "offset": 0, "property" : "Foo", "value" : "Bar", "search": "foo" } [在沙盒中打开]
- Example showing how to browse categories with default pagination.
- api.php?action=smwbrowse&browse=category¶ms={ "limit": 10, "offset": 0, "search": "" } [在沙盒中打开]
- Example showing how to browse categories filtered by a search term.
- api.php?action=smwbrowse&browse=category¶ms={ "limit": 10, "offset": 0, "search": "Date" } [在沙盒中打开]
- Example showing how to browse concepts with default pagination.
- api.php?action=smwbrowse&browse=concept¶ms={ "limit": 10, "offset": 0, "search": "" } [在沙盒中打开]
- Example showing how to browse concepts filtered by a search term.
- api.php?action=smwbrowse&browse=concept¶ms={ "limit": 10, "offset": 0, "search": "Date" } [在沙盒中打开]
- Example showing how to browse pages with default pagination.
- api.php?action=smwbrowse&browse=page¶ms={ "limit": 10, "offset": 0, "search": "Main" } [在沙盒中打开]
- Example showing how to browse pages including full text and full URL output.
- api.php?action=smwbrowse&browse=page¶ms={ "limit": 10, "offset": 0, "search": "Main", "fullText": true, "fullURL": true } [在沙盒中打开]
- Example showing how to browse a specific subject page including namespace and subobject support.
- api.php?action=smwbrowse&browse=subject¶ms={ "subject": "Main page", "ns" :0, "iw": "", "subobject": "" } [在沙盒中打开]