« PropertyChaining » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 29 : | Ligne 29 : | ||
This page has these numbers: [[Has number::100]], [[Has number::1.2]], [[Has number::-3]], [[Has number::1e2]], [[Has number::.4e2]],... | This page has these numbers: [[Has number::100]], [[Has number::1.2]], [[Has number::-3]], [[Has number::1e2]], [[Has number::.4e2]],... | ||
This page has these texts: [[Has text::100]] | This page has these texts: [[Has text::100]], [[Has text::1.2]], [[Has text::-3]], [[Has text::1e2]], [[Has text::.4e2]],... | ||
[[Category:Sandbox]] | [[Category:Sandbox]] |
Dernière version du 8 janvier 2016 à 06:06
Start from Berlin, show its chained properties:
Result | from Query Code | ||||
---|---|---|---|---|---|
Germany | {{#show: Berlin|?Located in}}
| ||||
Germany | {{#show: Berlin|?Located in#-}}
| ||||
Europe | {{#show: {{#show: Berlin|?Located in#-}} |?Has parent page}}
| ||||
Europe | {{#show: Berlin|?Located in.Has parent page}}
| ||||
This is the page about Europe.
|
{{: {{#show: {{#show: Berlin|?Located in#-}} |?Has parent page#-}} }}
| ||||
Hhappel, Kghbln, Mwjames, Test123abc | {{#show: {{#show: Berlin|?Located in#-}} |?Page author}}
| ||||
Berlin, Germany, Europe, Kghbln | {{#show: {{FULLPAGENAME}}|?Refer to}}
| ||||
100, -3 | {{#show: {{FULLPAGENAME}}|?Has number}}
| ||||
100, 1.2, -3, 1e2, .4e2 | {{#show: {{FULLPAGENAME}}|?Has text}}
| ||||
eg |
|
This page may refer to Berlin, Germany, Europe, User:Kghbln,...
This page has these numbers: 100, 1.2".2" can not be assigned to a declared number type with value 1., -3, 1e2, .4e2"." can not be assigned to a declared number type with value 400.,...
This page has these texts: 100, 1.2, -3, 1e2, .4e2,...