Discussion:
SMW - Inline Queries issues after updating to mediawiki 1.28.2
(too old to reply)
TekSystems, Steven Charteris
2017-06-12 19:57:41 UTC
Permalink
Hello,

After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.

mediawiki version: 1.28.2
SMW version 2.5.2

This is unfortunately a private wiki so I cannot link to it. To test, I
made a simplified query statement and was able to recreate the result.
On my page I have the following:

{{#ask: [[Category:Bacterium]]
 |?RDR Best Fit=Best Fit Model
}}

It results in a two column table. The first column has a link to every
page in the Bacterium category as it should.
The second column, however, shows up blank.

I can navigate to Property:RDR_Best_Fit on the wiki and see that data
exists there.

If I click the eye icon next to one of the pages in question, I can see
that RDR Best Fit indeed has a value, as below:

RDR Best Fit exponential

Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?

I very much appreciate your help.

Thanks,

Steve
James HK
2017-06-12 21:42:05 UTC
Permalink
Hi,
Post by TekSystems, Steven Charteris
After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.
Just to confirm, the upgrade only consist of replacing MediaWiki or
SMW as well?
Post by TekSystems, Steven Charteris
made a simplified query statement and was able to recreate the result.
{{#ask: [[Category:Bacterium]]
|?RDR Best Fit=Best Fit Model
}}
Is your use case observable on the sandbox [0], if not, can you create
an example that replicates your observation. Aside, from the specific
query, some related questions:

- Does executing the query via Special:Ask create the same observation?
- Selecting a different property on the same condition creates a
similar behaviour?
- Did you change the typing of property `RDR Best Fit` recently?
Post by TekSystems, Steven Charteris
Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?
No.

[0] https://sandbox.semantic-mediawiki.org

Cheers
Post by TekSystems, Steven Charteris
Hello,
After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.
mediawiki version: 1.28.2
SMW version 2.5.2
This is unfortunately a private wiki so I cannot link to it. To test, I
made a simplified query statement and was able to recreate the result.
{{#ask: [[Category:Bacterium]]
|?RDR Best Fit=Best Fit Model
}}
It results in a two column table. The first column has a link to every
page in the Bacterium category as it should.
The second column, however, shows up blank.
I can navigate to Property:RDR_Best_Fit on the wiki and see that data
exists there.
If I click the eye icon next to one of the pages in question, I can see
RDR Best Fit exponential
Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?
I very much appreciate your help.
Thanks,
Steve
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Charteris, Steven
2017-07-03 15:14:29 UTC
Permalink
Hi again,

Thank you so much for taking the time to respond and my deepest
apologies for the delay in getting back to you.
Post by James HK
Just to confirm, the upgrade only consist of replacing MediaWiki or
SMW as well?

The upgrade was actually both MediaWiki and SMW.
Post by James HK
Is your use case observable on the sandbox [0], if not, can you
create an example that replicates your observation.

I was not able to recreate the issue on the sandbox.
Post by James HK
- Does executing the query via Special:Ask create the same
observation?

Yes, it does
Post by James HK
- Selecting a different property on the same condition creates a
similar behaviour?

Yes, a similar behavior is created
Post by James HK
- Did you change the typing of property `RDR Best Fit` recently?
No, the typing has not changed recently.

All that said, I was mistaken before thinking the wiki was private, it
actually is open to the public. I can give two links that will help
demonstrate this example:

1. I used my user page to test and this is the full page showing all
the blank content where the ask should be returning values:

http://qmrawiki.canr.msu.edu/index.php/User:Charteri

2. Here is the simplified query through the special:ask page. You can
see that the RDR Best Fit column shows up blank, but if you click it
you can see the values are there.

http://qmrawiki.canr.msu.edu/index.php?title=Special%3AAsk&q=%5B%5BCate
gory%3ABacterium%5D%5D&po=%3FRDR+Best+Fit%0D%0A&eq=yes&p%5Bformat%5D=br
oadtable&sort_num=&order_num=ASC&p%5Blimit%5D=&p%5Boffset%5D=&p%5Blink%
5D=all&p%5Bsort%5D=&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=
&p%5Boutro%5D=&p%5Bsearchlabel%5D=...+further+results&p%5Bdefault%5D=&p
%5Bclass%5D=sortable+wikitable+smwtable&p%5Bsep%5D=&eq=yes


I appreciate your help thus far, please let me know if I can provide
any further information.

Thanks,

Steve
Post by James HK
Hi,
Post by TekSystems, Steven Charteris
After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.
Just to confirm, the upgrade only consist of replacing MediaWiki or
SMW as well?
Post by TekSystems, Steven Charteris
made a simplified query statement and was able to recreate the result.
{{#ask: [[Category:Bacterium]]
 |?RDR Best Fit=Best Fit Model
}}
Is your use case observable on the sandbox [0], if not, can you create
an example that replicates your observation. Aside, from the specific
- Does executing the query via Special:Ask create the same
observation?
- Selecting a different property on the same condition creates a
similar behaviour?
- Did you change the typing of property `RDR Best Fit` recently?
Post by TekSystems, Steven Charteris
Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?
No.
[0] https://sandbox.semantic-mediawiki.org
Cheers
Post by TekSystems, Steven Charteris
Hello,
After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.
mediawiki version: 1.28.2
SMW version 2.5.2
This is unfortunately a private wiki so I cannot link to it. To test, I
made a simplified query statement and was able to recreate the result.
{{#ask: [[Category:Bacterium]]
 |?RDR Best Fit=Best Fit Model
}}
It results in a two column table. The first column has a link to every
page in the Bacterium category as it should.
The second column, however, shows up blank.
I can navigate to Property:RDR_Best_Fit on the wiki and see that data
exists there.
If I click the eye icon next to one of the pages in question, I can see
RDR Best Fit     exponential
Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?
I very much appreciate your help.
Thanks,
Steve
-----------------------------------------------------------------
-------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Hermann Schwärzler
2017-07-04 14:37:33 UTC
Permalink
Hi Steven,

when I look at the source of your user page I see this:

{{#ask:[[[Recommended DR Model::<q>[[Category:Bacterium]]</q>]]|format =
template ... }}

Do you see that there are 3 [[[ instead of 2 [[ after "#ask:"?
This could be the problem.

If you look at your user page you will see a small warning sign at the
bottom of the table (just behind the footnote) with a mouse-over text
stating that the third [ is causing problems and "Resulsts might not be
as expected"...

Greetings
Hermann
Post by Charteris, Steven
Hi again,
Thank you so much for taking the time to respond and my deepest
apologies for the delay in getting back to you.
Post by James HK
Just to confirm, the upgrade only consist of replacing MediaWiki or
SMW as well?
The upgrade was actually both MediaWiki and SMW.
Post by James HK
Is your use case observable on the sandbox [0], if not, can you
create an example that replicates your observation.
I was not able to recreate the issue on the sandbox.
Post by James HK
- Does executing the query via Special:Ask create the same
observation?
Yes, it does
Post by James HK
- Selecting a different property on the same condition creates a
similar behaviour?
Yes, a similar behavior is created
Post by James HK
- Did you change the typing of property `RDR Best Fit` recently?
No, the typing has not changed recently.
All that said, I was mistaken before thinking the wiki was private, it
actually is open to the public. I can give two links that will help
1. I used my user page to test and this is the full page showing all
http://qmrawiki.canr.msu.edu/index.php/User:Charteri
2. Here is the simplified query through the special:ask page. You can
see that the RDR Best Fit column shows up blank, but if you click it
you can see the values are there.
http://qmrawiki.canr.msu.edu/index.php?title=Special%3AAsk&q=%5B%5BCate
gory%3ABacterium%5D%5D&po=%3FRDR+Best+Fit%0D%0A&eq=yes&p%5Bformat%5D=br
oadtable&sort_num=&order_num=ASC&p%5Blimit%5D=&p%5Boffset%5D=&p%5Blink%
5D=all&p%5Bsort%5D=&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=
&p%5Boutro%5D=&p%5Bsearchlabel%5D=...+further+results&p%5Bdefault%5D=&p
%5Bclass%5D=sortable+wikitable+smwtable&p%5Bsep%5D=&eq=yes
I appreciate your help thus far, please let me know if I can provide
any further information.
Thanks,
Steve
Post by James HK
Hi,
Post by TekSystems, Steven Charteris
After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.
Just to confirm, the upgrade only consist of replacing MediaWiki or
SMW as well?
Post by TekSystems, Steven Charteris
made a simplified query statement and was able to recreate the result.
{{#ask: [[Category:Bacterium]]
|?RDR Best Fit=Best Fit Model
}}
Is your use case observable on the sandbox [0], if not, can you create
an example that replicates your observation. Aside, from the specific
- Does executing the query via Special:Ask create the same
observation?
- Selecting a different property on the same condition creates a
similar behaviour?
- Did you change the typing of property `RDR Best Fit` recently?
Post by TekSystems, Steven Charteris
Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?
No.
[0] https://sandbox.semantic-mediawiki.org
Cheers
Post by TekSystems, Steven Charteris
Hello,
After upgrading mediawiki it seems my inline queries return no content
even though the content they seek exists.
mediawiki version: 1.28.2
SMW version 2.5.2
This is unfortunately a private wiki so I cannot link to it. To test, I
made a simplified query statement and was able to recreate the result.
{{#ask: [[Category:Bacterium]]
|?RDR Best Fit=Best Fit Model
}}
It results in a two column table. The first column has a link to every
page in the Bacterium category as it should.
The second column, however, shows up blank.
I can navigate to Property:RDR_Best_Fit on the wiki and see that data
exists there.
If I click the eye icon next to one of the pages in question, I can see
RDR Best Fit exponential
Has something changed with how inline queries work that might be
preventing the query above from successfully pulling the data?
I very much appreciate your help.
Thanks,
Steve
-----------------------------------------------------------------
-------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...