Template talk:Logo of
Jump to navigation
Jump to search
Query-Depth:1
Not working perfectly
This works when given a literal argument, whether plaintext or a link. I don't know why this displays two unwanted bullets after the logo when given output from another SMW query - I suspect an SMW bug. The only lead I have on this at the moment is that the debug format flags up a badly formed query. i.e.:{{#ask: [[-Has logo::{{#ask: [[Has leader::Director of the Central Intelligence Agency]]}}]]|format=debug}}
gives:
SQLStore debug output
ASK Query
[[-Has logo::CIA]]
SQL Query
SELECT DISTINCT
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t0.smw_sort
FROM
`mw_smw_object_ids` AS t0
INNER JOIN
`mw_smw_di_wikipage` AS t1 ON t0.smw_id=t1.o_id
WHERE
(t1.p_id='1213' AND t1.s_id='2577')
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
LIMIT
55
OFFSET
0
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t0.smw_sort
FROM
`mw_smw_object_ids` AS t0
INNER JOIN
`mw_smw_di_wikipage` AS t1 ON t0.smw_id=t1.o_id
WHERE
(t1.p_id='1213' AND t1.s_id='2577')
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
LIMIT
55
OFFSET
0
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t1 | ref | s_id,o_id,p_id,s_id_2,s_id_3,o_id_2,o_id_3 | p_id | 8 | const,const | 1 | Using where; Using temporary; Using filesort |
1 | SIMPLE | t0 | eq_ref | PRIMARY,smw_id,smw_iw,smw_iw_2 | PRIMARY | 4 | wikispooks.t1.o_id | 1 | Using where |
Auxilliary Tables
No auxilliary tables used.Query Metrics
Query-Size:2Query-Depth:1
Errors and Warnings
The part "|CIA" of the query was not understood.
Results might not be as expected.
The part "]]" of the query was not understood.
<ul><li>The part "|CIA" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>
Robin (talk) 06:59, 12 January 2015 (GMT)
- Probably the quickest way to resolve this is to post details on the SMW mailing list. I'm already a member and will do so myself if you like --Peter P (talk) 07:34, 12 January 2015 (GMT)