« Issue/2099 » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 66 : | Ligne 66 : | ||
|limit=2 | |limit=2 | ||
}} | }} | ||
{{#scite:gh:smw:2099 | {{#scite:gh:smw:2099 |
Dernière version du 16 janvier 2017 à 03:16
Without #20991 this page would require 5 different queries while the computational effort would be the same for two of them. After the merge we should effectively see 3 queries with two sharing the same signature even though the query string is different.
Query string"Query string" is a predefined property that describes the conditions of the query as a string and is provided by Semantic MediaWiki. | |
---|---|
Issue/2099#_QUERY1ccb4ff1a75ef9f2e3171578400f6f1b | <q>[[Has page::+]] [[Has text::+]] OR <q>[[Has number::1111]]</q> </q> <q> <q>[[Has number::1111]]</q> OR [[Has text::+]] [[Has page::+]]</q> |
Issue/2099#_QUERY387bb3c8a451dd20188457a71ada27e8 | [[-Has query::Issue/2099]] |
Issue/2099#_QUERYb54928c3e0ce8ac8c6ee0fa8fd4d3f2c | <q>[[Has page::+]] [[Has text::+]] OR <q>[[Has number::1111]]</q> </q> <q> <q>[[Has number::1111]]</q> OR [[Has text::+]] [[Has page::+]]</q> |
Examples
{{#ask: [[Has page::+]] [[Has text::+]] OR [[Has number::1111]] |?Has page |?Has text |?Has number |limit=3 }}
Has pageUsed for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters. | Has textUsed to store strings of arbitrary length. | Has numberUsed for property values that contain any kind of number, integer, decimal, and floating point numbers. | |
---|---|---|---|
20201117-set | World1 World2 World3 | Hello1 Hello2 Hello3 | |
20201117-subobject | World2 | Hello2 | |
20201117-subobject | World3 | Hello3 | |
... further results |
{{#ask: [[Has page::+]] [[Has text::+]] OR [[Has number::1111]] |?Has page |?Has text |?Has number |limit=2 }}
Has pageUsed for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters. | Has textUsed to store strings of arbitrary length. | Has numberUsed for property values that contain any kind of number, integer, decimal, and floating point numbers. | |
---|---|---|---|
20201117-set | World1 World2 World3 | Hello1 Hello2 Hello3 | |
20201117-subobject | World2 | Hello2 | |
... further results |
Same signature
{{#ask: [[Has number::1111]] OR [[Has text::+]] [[Has page::+]] |?Has page |?Has text |?Has number |limit=3 }}
Has pageUsed for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters. | Has textUsed to store strings of arbitrary length. | Has numberUsed for property values that contain any kind of number, integer, decimal, and floating point numbers. | |
---|---|---|---|
20201117-set | World1 World2 World3 | Hello1 Hello2 Hello3 | |
20201117-subobject | World2 | Hello2 | |
20201117-subobject | World3 | Hello3 | |
... further results |
{{#ask: [[Has number::1111]] OR [[Has text::+]] [[Has page::+]] |?Has page |?Has text |?Has number |limit=2 }}
Has pageUsed for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters. | Has textUsed to store strings of arbitrary length. | Has numberUsed for property values that contain any kind of number, integer, decimal, and floating point numbers. | |
---|---|---|---|
20201117-set | World1 World2 World3 | Hello1 Hello2 Hello3 | |
20201117-subobject | World2 | Hello2 | |
... further results |