Utilisateur:SMW user/Sandbox

De Semantic MediaWiki - Sandbox

Reference

Possible reference with issue 4988: different query, but same bugged property chains.

Description

Setting subobjects events01 to events13 with the property Has text (in theory these subobjects would hold lots of information). Setting subobjects timer01 to timer95, which sets the properties Has date in 15 minutes steps and Has page (set to all subobjects) to one of the event subobjects. Alternatively formulated, one of the thirteen events takes place every 15 minutes.

Property declaration

{{#subobject:event01 | Has text=Event 01}}
...
{{#subobject:event13 | Has text=Event 13}}

{{#subobject:timer00 | Has date=2021-05-19T00:00 UTC | Has page=Utilisateur:SMW_user/Sandbox#event05}}
...
{{#subobject:timer95 | Has date=2021-05-19T23:45 UTC | Has page=Utilisateur:SMW_user/Sandbox#event09}}

Query

{{#ask:
  [[-Has subobject::Utilisateur:SMW_user/Sandbox]]
  [[Has date::>19 May 2020 00:00]]
| ?Has page.Has text
| sort = Has date
| format = table
}}


Problem

The printed property chain Has page.Has text in the query above does not display all values while the individual ask (see below) in fact does.

Individual ask
{{#ask: [[Utilisateur:SMW user/Sandbox#timer09]] | ?Has page.Has text|format=table}}


Debug

Debug outputElasticStore
{ "smw": { "query": "[[-Has subobject::Utilisateur:SMW_user/Sandbox]] [[Has date::>19 May 2020 00:00]]", "sort": { "Has_date": "ASC" }, "metrics": { "query size": 4, "query depth": 1 }, "description_log": [ { "Conjunction": "[[-Has subobject::Utilisateur:SMW user/Sandbox]] [[Has date::≥19 mai 2020 00:00:00]]" }, [ { "SomeProperty": "[[-Has subobject::Utilisateur:SMW user/Sandbox]]" } ], [ { "SomeProperty": "[[Has date::≥19 mai 2020 00:00:00]]" } ] ] }, "elastic": [ { "inverse_lookup_query": [ "_SOBJ", "[[:Utilisateur:SMW user/Sandbox]]" ], "query": { "index": "smw-data-db9910120150926-02100_", "type": "data", "body": { "_source": [ "P:33234.wpgID" ], "query": { "constant_score": { "filter": { "bool": { "must": { "terms": { "_id": [ 256691 ] } } } } } } }, "size": 10000 }, "search_info": { "took": 3, "timed_out": false, "max_score": 1, "total": 0 }, "isFromCache": false }, { "index": "smw-data-db9910120150926-02100_", "type": "data", "body": { "_source": false, "from": 0, "size": 251, "query": { "constant_score": { "filter": { "bool": { "must": [ { "bool": { "filter": { "exists": { "field": "empty.lookup_query" } } } }, { "bool": { "must": [ { "range": { "P:32965.datField": { "gte": 2458988.5 } } } ] } } ] } } } }, "sort": [ { "P:32965.datField": { "order": "asc" } } ] } }, { "_shards": { "total": 1, "successful": 1, "failed": 0 }, "valid": true, "explanations": [ { "index": "smw-data-db9910120150926-02100_-v2", "valid": true, "explanation": "+ConstantScore(+(#MatchNoDocsQuery("No field "empty.lookup_query" exists in mappings.")) +(+P:32965.datField:[2458988.5 TO Infinity])) #*:*" } ] } ] }
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.