Différences entre les versions de « Utilisateur:SMW user/Sandbox »

De Semantic MediaWiki - Sandbox
Ligne 113 : Ligne 113 :
  
 
}}
 
}}
 +
== Reference ==
 +
Possible reference with issue [https://sandbox.semantic-mediawiki.org/wiki/Issue/4965 4988]: different query, but same bugged property chains.
 +
 
== Description ==
 
== Description ==
Setting subobjects <code>events01</code> to <code>events13</code> with the property '''Has text''' (in theory these subobjects would hold lots of information). Setting subobjects <code>timer01</code> to <code>timer95</code>, which sets the properties '''Has date''' in 15 minutes steps and '''Has page''' to one of the event subobjects. Alternatively formulated, one of the thirteen events takes place every 15 minutes.
+
Setting subobjects <code>events01</code> to <code>events13</code> with the property '''Has text''' (in theory these subobjects would hold lots of information). Setting subobjects <code>timer01</code> to <code>timer95</code>, 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 ==
 
== Property declaration ==
Ligne 143 : Ligne 146 :
 
| format = table
 
| 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
 
;Individual ask
Ligne 150 : Ligne 156 :
 
{{#ask: [[Utilisateur:SMW user/Sandbox#timer09]] | ?Has page.Has text|format=table}}
 
{{#ask: [[Utilisateur:SMW user/Sandbox#timer09]] | ?Has page.Has text|format=table}}
  
== Problem ==
+
=== Debug ===
The printed property chain ''Has page.Has text'' in the query above does '''not''' display all values while the individual ask in fact does.
+
{{#ask:
 +
  [[-Has subobject::Utilisateur:SMW_user/Sandbox]]
 +
  [[Has date::>19 May 2020 00:00]]
 +
| ?Has page.Has text
 +
| sort = Has date
 +
| format = debug
 +
}}

Version du 19 mai 2021 à 17:48

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": 1, "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.