1344 (MonolingualTextValue)
From Semantic MediaWiki - Sandbox
https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/1344
In case where [[Has type::Monolingual text]] is being used, php update.php is required to run first as elements of MonolingualTextValue are stored in separate tables.
Valid annotations
{{#subobject:
|Has text with language=例の一@ja
}}{{#subobject:
|Has translation for=Country
|Has text with language=国@zh-hans
}}{{#subobject:
|Has translation for=Country
|Has text with language=國@zh-hant
}}
[[Has text with language::text@fr]]
[[Has text with language::abc@example.com wrote an email to@en]]
text (fr)
abc@example.com wrote an email to (en)
Invalid annotations
[[Has text with language::missing language code]] [[Has text with language::abc@example.com]]
For the "Has text with language" annotation, the parser was unable to determine a language code (i.e. "foo@en").
"example.com" was not recognized as a supported language code.
Query examples
{{#ask:
[[Has text with language::text]]
|?Has text with language
}}
| Has text with language | |
|---|---|
| Issue/1344 (MonolingualTextValue) | text (fr) abc@example.com wrote an email to (en) |
{{#ask:
[[Has text with language::?@en]]
OR
[[Has text with language::~例の*]]
|?Has text with language
}}
| Has text with language | |
|---|---|
| Issue/1344 (MonolingualTextValue) | text (fr) abc@example.com wrote an email to (en) |
| Issue/1344 (MonolingualTextValue) | 例の一 (ja) |
{{#ask:
[[-Has text with language::{{PAGENAME}}]]
|?Language code
|?Text
}}
| Language code"Language code" is a predefined property that represents a BCP47 formatted language code and is provided by Semantic MediaWiki. | Text"Text" is a predefined property that represents text of arbitrary length and is provided by Semantic MediaWiki. | |
|---|---|---|
| Issue/1344 (MonolingualTextValue) | en | abc@example.com wrote an email to |
| Issue/1344 (MonolingualTextValue) | fr | text |
{{#ask:
[[Language code::ja]]
|?Text
|?-Has text with language
}}
| Text"Text" is a predefined property that represents text of arbitrary length and is provided by Semantic MediaWiki. | -Has text with language | |
|---|---|---|
| CXuesong/Sandbox2 | テスト | |
| Example/S0016/1 | テスト | |
| Has GND | 統合典拠ファイル(ドイツ語: Gemeinsame Normdatei、別名: 共通データベース、共通統一データベース)またはGNDとは目録からの個人名、件名標目、企業団体を組織化するための国際的典拠ファイルである | |
| Has URL | インターネットURL | |
| Has population | 人口 | |
| Intel 8 16 LAN Adapter.jpg | Intel 8∕16 LAN ネットワークカード | |
| Issue/1344 (MonolingualTextValue) | 例の一 | Issue/1344_(MonolingualTextValue) |
| NDL ID | 国立国会図書館典拠データ検索 | |
| P106 | 人物の職業。「専門分野」(Property:P101) も参照 | |
| P106 | 職業 | |
| P136 | ジャンル | |
| P136 | 主題の創作物・芸術作品のジャンル | |
| P1449 | ニックネーム | |
| P1449 | 主題の愛称、あだ名 | |
| P19 | 出生地 | |
| P19 | 最も詳細かつ知られた出生地(例:国ではなく市) | |
| P569 | その生物が生まれた日付 | |
| P569 | 生年月日 | |
| P570 | その生物が死亡した日付 | |
| P570 | 没年月日 | |
| Rashômon (羅生門) | 羅生門 | |
| Test one | 一二三 | |
| Triacylglycerol lipase | トリアシルグリセロールリパーゼ | |
| dwc:kingdom | その分類群が位置づけられている、分類上の「界」のフルネーム。 |
{{#ask:
[[Has text with language::?@~zh*]]
|?Has text with language=Text |+index=1
|?Has text with language=Code |+index=2
}}
| Text | Code | |
|---|---|---|
| Issue/1344 (MonolingualTextValue) | 国 | zh-Hans |
| Issue/1344 (MonolingualTextValue) | 國 | zh-Hant |