Help:JSON format/zh-hans
From Linux Web Expert
(Redirected from Help:JSON格式)
JSON format/zh-hans | |
---|---|
采用JSON格式输出语义数据 | |
更多信息 | |
提供者: | Semantic MediaWiki/zh-hans |
添加版本: | 1.4.2 |
移除版本: | 依然支持 |
需求: | 无 |
格式名称: | json |
启用?表明安装相应扩展时是否默认启用该结果格式。 | 是 |
作者: | Fabian Howahl , Jeroen De Dauw |
分类: | export · plaintext |
目录 | |
参数
⧼validator-describe-header-parameter⧽ | ⧼validator-describe-header-type⧽ | ⧼validator-describe-header-default⧽ | ⧼validator-describe-header-description⧽ |
---|---|---|---|
type | ⧼validator-type-string⧽ | full | 序列化类型 |
prettyprint | ⧼validator-type-boolean⧽ | ⧼validator-describe-empty⧽ | 显示额外缩进和换行的美化打印(pretty-print)输出 |
unescape | ⧼validator-type-boolean⧽ | ⧼validator-describe-empty⧽ | 含有未转义斜杠和多字节Unicode字符的输出 |
filename | ⧼validator-type-string⧽ | result.json | 输出文件的名称 |
示例
{{#ask: [[Category:City]] [[located in::Germany]] | ?population | format=json }}
实际运行结果: JSON
Property "Namespace" has a restricted application area and cannot be used as annotation property by a user.Property "Docinfo editor" (as page type) with input value "User:>LittlePaw365" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
本文档页面适用于SMW从1.4.2版到最新版本的所有版本。