راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=smwbrowse

(main | smwbrowse)
  • این پودمان نیازمند اختیارات خواندن است.
  • منبع: Semantic MediaWiki
  • مجوز: GPL-2.0-or-later

API module to support browse activities for different entity types in Semantic MediaWiki.

پارامترها:
Other general parameters are available.
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&params={ "limit": 10, "offset": 0, "search": "*" } [باز کردن در صفحهٔ تمرین]
Example showing how to browse properties with pagination and descending sort order.
api.php?action=smwbrowse&browse=property&params={ "limit": 10, "offset": 10, "search": "*", "sort": "desc" } [باز کردن در صفحهٔ تمرین]
Example showing how to browse properties filtered by a search term.
api.php?action=smwbrowse&browse=property&params={ "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&params={ "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&params={ "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&params={ "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&params={ "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&params={ "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&params={ "limit": 10, "offset": 0, "search": "" } [باز کردن در صفحهٔ تمرین]
Example showing how to browse categories filtered by a search term.
api.php?action=smwbrowse&browse=category&params={ "limit": 10, "offset": 0, "search": "Date" } [باز کردن در صفحهٔ تمرین]
Example showing how to browse concepts with default pagination.
api.php?action=smwbrowse&browse=concept&params={ "limit": 10, "offset": 0, "search": "" } [باز کردن در صفحهٔ تمرین]
Example showing how to browse concepts filtered by a search term.
api.php?action=smwbrowse&browse=concept&params={ "limit": 10, "offset": 0, "search": "Date" } [باز کردن در صفحهٔ تمرین]
Example showing how to browse pages with default pagination.
api.php?action=smwbrowse&browse=page&params={ "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&params={ "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&params={ "subject": "Main page", "ns" :0, "iw": "", "subobject": "" } [باز کردن در صفحهٔ تمرین]